{"modulePath":"github.com/CompassLabs/cli","version":"v0.1.81","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package usage\n\n## Functions\n\n```go\nfunc DisarmRequiredFlags(cmd *cobra.Command)\n```\nDisarmRequiredFlags clears cobra's required-flag annotations so a --usage invocation answers with the command's schema even when required inputs are absent: requiredness is part of the answer, not a precondition for asking. Cobra validates the same annotations itself after the pre-run hooks, so skipping the CLI's own eager validation alone would not be enough. The cleared annotations are kept aside for RearmRequiredFlags, so a reused command tree keeps enforcing requiredness on later executions.\n\n```go\nfunc EmitBodySchema(w io.Writer, operationID string) error\n```\n\n```go\nfunc EmitSchema(cmd *cobra.Command, w io.Writer) error\n```\n\n```go\nfunc GroupMadeRunnable(cmd *cobra.Command) bool\n```\n\n```go\nfunc Intercept(root *cobra.Command)\n```\n\n```go\nfunc MarkDynamic(cmd *cobra.Command)\n```\nMarkDynamic makes --usage render the command's schema live from its cobra definition.\n\n```go\nfunc RearmRequiredFlags(cmd *cobra.Command)\n```\nRearmRequiredFlags restores the annotations DisarmRequiredFlags removed.\n\n```go\nfunc UsageRequested(cmd *cobra.Command) bool\n```\n\n","path":"github.com/CompassLabs/cli/internal/usage","name":"usage","synopsis":"","isRedistributable":true}
