Documentation ¶
Index ¶
- func AddKubectlFlagsToCmd(cmd *cobra.Command) clientcmd.ClientConfig
- func AskToProceed(message string) bool
- func NewVersionCmd(cliName string) *cobra.Command
- func PromptCredentials(username, password string) (string, string)
- func PromptMessage(message, value string) string
- func PromptPassword(password string) string
- func PromptUsername(username string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKubectlFlagsToCmd ¶
func AddKubectlFlagsToCmd(cmd *cobra.Command) clientcmd.ClientConfig
AddKubectlFlagsToCmd adds kubectl like flags to a command and returns the ClientConfig interface for retrieving the values.
func AskToProceed ¶ added in v0.4.0
AskToProceed prompts the user with a message (typically a yes or no question) and returns whether or not they responded in the affirmative or negative.
func NewVersionCmd ¶
NewVersionCmd returns a new `version` command to be used as a sub-command to root
func PromptCredentials ¶ added in v0.3.2
PromptCredentials is a helper to prompt the user for a username and password (unless already supplied)
func PromptMessage ¶ added in v0.4.0
PromptMessage prompts the user for a value (unless already supplied)
func PromptPassword ¶ added in v0.4.0
PromptPassword prompts the user for a password, without local echo. (unless already supplied)
func PromptUsername ¶ added in v0.4.0
PromptUsername prompts the user for a username value
Types ¶
This section is empty.