Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates a new command for executing a login
Types ¶
type Options ¶
type Options struct { // Config is the Optimize Configuration to modify Config *config.OptimizeConfig // IOStreams are used to access the standard process streams commander.IOStreams // Environment overrides the default execution environment Environment string // Server overrides the default server identifier Server string // Issuer overrides the default authorization server issuer Issuer string // DisplayURL triggers a device authorization grant with a simple verification prompt DisplayURL bool // DisplayQR triggers a device authorization grant and uses a QR code for the verification prompt DisplayQR bool // Force allows an existing authorization to be overwritten Force bool // contains filtered or unexported fields }
Options is the configuration for creating new authorization entries in a configuration
func (*Options) LoadConfig ¶
LoadConfig is alternate configuration loader. This is a special case for the login command as it needs to inject new information into the configuration at load time.
Click to show internal directories.
Click to hide internal directories.