From bbf41970ec393292b42c6bd5951299bbb6d004d1 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Thu, 5 Sep 2024 12:37:28 -0400 Subject: [PATCH] docs command now hidden --- cmd/root/root.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/root/root.go b/cmd/root/root.go index 626b428..379baaa 100644 --- a/cmd/root/root.go +++ b/cmd/root/root.go @@ -44,7 +44,11 @@ func NewRootCommand() (*cobra.Command, error) { cmd.AddCommand(generate.NewGenerateCommand()) cmd.AddCommand(insights.NewInsightsCommand()) cmd.AddCommand(version.NewVersionCommand()) - cmd.AddCommand(docs.NewDocsCommand()) + + // The docs command is hidden as it's only used by the pizza-cli maintainers + docsCmd := docs.NewDocsCommand() + docsCmd.Hidden = true + cmd.AddCommand(docsCmd) err := cmd.PersistentFlags().MarkHidden(constants.FlagNameEndpoint) if err != nil {