Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command builds the root cobra command for the given version using the compile-time registered provider list.
func IsJSONFlagActive ¶
func IsJSONFlagActive() bool
IsJSONFlagActive reports whether the --json flag was actively set by the user on the command that was actually executed. Safe for concurrent use.
func ValidateArgs ¶ added in v0.2.4
ValidateArgs detects stray positional arguments on non-runnable group commands and converts them into a local unknown-command usage error.
The passed command tree may be mutated during validation because Cobra flag parsing updates flag state. Callers that will execute the command afterwards should validate against a separate command instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.