Documentation
¶
Index ¶
- func BuildOauthTokenParams(clientID, clientSecret, audience string) url.Values
- func BuildOauthTokenURL(domain string) string
- func Execute()
- func RunLogin(ctx context.Context, cli *cli, expired bool) error
- func WrappedInheritedFlagUsages(cmd *cobra.Command) string
- func WrappedLocalFlagUsages(cmd *cobra.Command) string
- func WrappedNonRequestParamsFlagUsages(cmd *cobra.Command) string
- func WrappedRequestParamsFlagUsages(cmd *cobra.Command) string
- type Flag
- func (f *Flag) Ask(cmd *cobra.Command, value interface{}) error
- func (f *Flag) AskU(cmd *cobra.Command, value interface{}) error
- func (f *Flag) RegisterString(cmd *cobra.Command, value *string, defaultValue string)
- func (f *Flag) RegisterStringSlice(cmd *cobra.Command, value *[]string, defaultValue []string)
- func (f *Flag) RegisterStringSliceU(cmd *cobra.Command, value *[]string, defaultValue []string)
- func (f *Flag) RegisterStringU(cmd *cobra.Command, value *string, defaultValue string)
- func (f *Flag) Select(cmd *cobra.Command, value interface{}, options []string) error
- func (f *Flag) SelectU(cmd *cobra.Command, value interface{}, options []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOauthTokenParams ¶
func BuildOauthTokenURL ¶
func RunLogin ¶
RunLogin runs the login flow guiding the user through the process by showing the login instructions, opening the browser. Use `expired` to run the login from other commands setup: this will only affect the messages.
func WrappedInheritedFlagUsages ¶
WrappedInheritedFlagUsages returns a string containing the usage information for all flags which were inherited from parent commands, wrapped to the terminal's width.
func WrappedLocalFlagUsages ¶
WrappedLocalFlagUsages returns a string containing the usage information for all flags specifically set in the current command, wrapped to the terminal's width.
func WrappedNonRequestParamsFlagUsages ¶
WrappedNonRequestParamsFlagUsages returns a string containing the usage information for all non-request parameters flags. The string is wrapped to the terminal's width.
func WrappedRequestParamsFlagUsages ¶
WrappedRequestParamsFlagUsages returns a string containing the usage information for all request parameters flags, i.e. flags used in operation commands to set values for request parameters. The string is wrapped to the terminal's width.