login

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "login",
	Short: "Log in to your Red Hat account",
	Long: fmt.Sprintf("Log in to your Red Hat account, saving the credentials to the configuration file.\n"+
		"The supported mechanism is by using a token, which can be obtained at: %s\n\n"+
		"The application looks for the token in the following order, stopping when it finds it:\n"+
		"\t1. Command-line flags\n"+
		"\t2. Environment variable (ROSA_TOKEN)\n"+
		"\t3. Environment variable (OCM_TOKEN)\n"+
		"\t4. Configuration file\n"+
		"\t5. Command-line prompt\n", uiTokenPage),
	Example: "  # Login to the OpenShift API with an existing token generated from " +
		`https://cloud.redhat.com/openshift/token/rosa
  rosa login --token=$OFFLINE_ACCESS_TOKEN`,
	Run: run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL