Documentation
¶
Index ¶
- func Annotate(cmd *cobra.Command, meta murli.Metadata)
- func BuildDescribeTree(cmd *gocobra.Command) murli.DescribeCommandSchema
- func EmitSchema(cmd *gocobra.Command) error
- func Enable(rootCmd *gocobra.Command)
- func Execute(rootCmd *gocobra.Command) error
- func NewWriter(cmd *cobra.Command) *murli.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotate ¶
Annotate serializes murli Metadata and binds it to a Cobra command's Annotations map.
func BuildDescribeTree ¶ added in v0.3.0
func BuildDescribeTree(cmd *gocobra.Command) murli.DescribeCommandSchema
BuildDescribeTree recursively builds the full DescribeCommandSchema for cmd and all its visible, non-system subcommands.
func EmitSchema ¶
EmitSchema extracts command metadata and flag schemas, prints JSON to Stdout, and returns nil.
func Enable ¶
Enable injects --schema and --agent persistent flags and wraps all command RunE handlers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.