Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactOneArgWithUsage ¶
func ExactOneArgWithUsage() cobra.PositionalArgs
ExactOneArgWithUsage returns a cobra positional args validator that provides a descriptive error message when the required argument is missing. It extracts the argument name from the command's Use field (e.g., "get [NAMESPACE_NAME]" → "NAMESPACE_NAME").
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.