Skip to content

Commit

Permalink
docs command now hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Sep 5, 2024
1 parent 3693392 commit bbf4197
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bbf4197

Please sign in to comment.