-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
options.go
27 lines (23 loc) · 1.06 KB
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var optionsCmd = &cobra.Command{
Use: "options",
Short: "Show install options specific to <formula>",
GroupID: "main",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(optionsCmd).Standalone()
optionsCmd.Flags().Bool("command", false, "Show options for the specified <command>.")
optionsCmd.Flags().Bool("compact", false, "Show all options on a single line separated by spaces.")
optionsCmd.Flags().Bool("debug", false, "Display any debugging information.")
optionsCmd.Flags().Bool("eval-all", false, "Evaluate all available formulae and casks, whether installed or not, to show their options.")
optionsCmd.Flags().Bool("help", false, "Show this message.")
optionsCmd.Flags().Bool("installed", false, "Show options for formulae that are currently installed.")
optionsCmd.Flags().Bool("quiet", false, "Make some output more quiet.")
optionsCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
rootCmd.AddCommand(optionsCmd)
}