-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
homepage.go
24 lines (20 loc) · 868 Bytes
/
homepage.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
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var homepageCmd = &cobra.Command{
Use: "homepage",
Short: "Open a <formula> or <cask>'s homepage in a browser, or open Homebrew's own homepage if no argument is provided",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(homepageCmd).Standalone()
homepageCmd.Flags().Bool("cask", false, "Treat all named arguments as casks.")
homepageCmd.Flags().Bool("debug", false, "Display any debugging information.")
homepageCmd.Flags().Bool("formula", false, "Treat all named arguments as formulae.")
homepageCmd.Flags().Bool("help", false, "Show this message.")
homepageCmd.Flags().Bool("quiet", false, "Make some output more quiet.")
homepageCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
rootCmd.AddCommand(homepageCmd)
}