Skip to content

Commit

Permalink
hide completions command by default
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasvanEyk committed Jun 17, 2023
1 parent b42c9ad commit 93e723f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func init() {
// Help is already accessible via --help
rootCmd.SetHelpCommand(&cobra.Command{Hidden: true})

// Hide 'completions' command from help (most users won't need this, it does not relate to changelogs)
rootCmd.CompletionOptions.HiddenDefaultCmd = true

// Cobra also supports local flags, which will only run
// when this action is called directly.
// rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
Expand Down

0 comments on commit 93e723f

Please sign in to comment.