Documentation ¶
Index ¶
- func ExactArgs(n int) cobra.PositionalArgs
- func ExactObjectIDArgs(n int) cobra.PositionalArgs
- func ExactValidArgs(n int) cobra.PositionalArgs
- func MaximumNArgs(n int) cobra.PositionalArgs
- func MinimumNArgs(n int) cobra.PositionalArgs
- func MinimumNObjectIDArgs(n int) cobra.PositionalArgs
- func NoArgs(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactArgs ¶
func ExactArgs(n int) cobra.PositionalArgs
ExactArgs returns an error if there are not exactly n args.
func ExactObjectIDArgs ¶
func ExactObjectIDArgs(n int) cobra.PositionalArgs
ExactArgsObjectID returns an error if there are not exactly n args and any of those args is not an ObjectID.
func ExactValidArgs ¶
func ExactValidArgs(n int) cobra.PositionalArgs
ExactValidArgs returns an error if there are not exactly N positional args OR there are any positional args that are not in the `ValidArgs` field of `Command`.
func MaximumNArgs ¶
func MaximumNArgs(n int) cobra.PositionalArgs
MaximumNArgs returns an error if there are more than N args.
func MinimumNArgs ¶
func MinimumNArgs(n int) cobra.PositionalArgs
MinimumNArgs returns an error if there is not at least N args.
func MinimumNObjectIDArgs ¶
func MinimumNObjectIDArgs(n int) cobra.PositionalArgs
MinimumNObjectIDArgs returns an error if there is not at least N args and any of those args is not an ObjectID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.