Skip to content

Commit

Permalink
brew: analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Feb 7, 2024
1 parent ff180de commit c17b12f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions completers/brew_completer/cmd/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace/pkg/style"
"github.com/spf13/cobra"
)

Expand All @@ -20,4 +21,8 @@ func init() {
analyticsCmd.Flags().Bool("quiet", false, "Make some output more quiet.")
analyticsCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
rootCmd.AddCommand(analyticsCmd)

carapace.Gen(analyticsCmd).PositionalCompletion(
carapace.ActionValues("state", "on", "off").StyleF(style.ForKeyword),
)
}

0 comments on commit c17b12f

Please sign in to comment.