Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactArgs ¶
func ExactArgs(expected ...string) cobra.PositionalArgs
ExactArgs is a validator for commands to print an error when number of expected args are different from the number of passed args. The names passed in to `expected` are used for the help message.
func MaximumNArgs ¶
func MaximumNArgs(num int) cobra.PositionalArgs
MaximumNArgs is a validator for commands to print an error when the provided args are greater than the maximum amount
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.