Documentation ¶
Overview ¶
Package cmdutil implements command line utilities.
Index ¶
- func ArgDefault(args []string, n int, def string) string
- func PromptConfirmed(entity string, fn func(string) error) string
- func PromptLine(entity string) (_ string, err error)
- func PromptPassword(entity string) string
- func PromptPasswordRepeated(entity string) string
- func WrapCommand(fn func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgDefault ¶
ArgDefault - Returns Nth argument or a default.
func PromptConfirmed ¶
PromptConfirmed - Prompts for a value confirmed with function.
func PromptLine ¶
PromptLine - Prompts for entire line.
func PromptPassword ¶
PromptPassword - Prompts for masked password.
func PromptPasswordRepeated ¶
PromptPasswordRepeated - Prompts for masked repeated password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.