# Functions

NewDiscoveryCommand creates a hidden command returning a description of the passed command hierarchy as JSON.
SpecFromCommand creates a CommandSpec describing a cobra.Command.
SpecFromFlag creates a FlagSpec describing a flag.
SpecsFromFlagset creates a slice of FlagSpecs from a pflag.FlagSet.

# Constants

No description provided by the author

# Structs

CommandSpec is a serializable object that has all the information that describes a cobra.Command.
FlagSpec is a serializable object that has all the information that describes a pflag.Flag.
Spec describes a CLI plugin in a serializable format.