Documentation
¶
Index ¶
- func ApplicationIDExists(cfg config.IConfig) func(appID interface{}) error
- func ExactArgs(n int) cobra.PositionalArgs
- func ExactArgsWithMsg(n int, msg string) cobra.PositionalArgs
- func NoArgs() cobra.PositionalArgs
- func PathExists(input string) error
- func ProfileNameExists(cfg config.IConfig) func(profileName interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationIDExists ¶
ApplicationIDExists validates that a string is a valid Application ID.
func ExactArgs ¶
func ExactArgs(n int) cobra.PositionalArgs
ExactArgs is the same as ExactArgsWithMsg but displays a default error message
func ExactArgsWithMsg ¶ added in v1.2.1
func ExactArgsWithMsg(n int, msg string) cobra.PositionalArgs
ExactArgs is a validator for commands to print an error with a custom message followed by usage, flags and available commands when too few/much arguments are provided
func NoArgs ¶
func NoArgs() cobra.PositionalArgs
NoArgs is a validator for commands to print an error when an argument is provided
func PathExists ¶
PathExists validates that a string is a path that exists.
func ProfileNameExists ¶
ProfileNameExists validates that a string is a valid profile name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.