-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
livecheck.go
32 lines (28 loc) · 1.56 KB
/
livecheck.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
28
29
30
31
32
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var livecheckCmd = &cobra.Command{
Use: "livecheck",
Short: "Check for newer versions of formulae and/or casks from upstream",
GroupID: "developer",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(livecheckCmd).Standalone()
livecheckCmd.Flags().Bool("cask", false, "Only check casks.")
livecheckCmd.Flags().Bool("debug", false, "Display any debugging information.")
livecheckCmd.Flags().Bool("eval-all", false, "Evaluate all available formulae and casks, whether installed or not, to check them.")
livecheckCmd.Flags().Bool("formula", false, "Only check formulae.")
livecheckCmd.Flags().Bool("full-name", false, "Print formulae and casks with fully-qualified names.")
livecheckCmd.Flags().Bool("help", false, "Show this message.")
livecheckCmd.Flags().Bool("installed", false, "Check formulae and casks that are currently installed.")
livecheckCmd.Flags().Bool("json", false, "Output information in JSON format.")
livecheckCmd.Flags().Bool("newer-only", false, "Show the latest version only if it's newer than the formula/cask.")
livecheckCmd.Flags().Bool("quiet", false, "Suppress warnings, don't print a progress bar for JSON output.")
livecheckCmd.Flags().Bool("resources", false, "Also check resources for formulae.")
livecheckCmd.Flags().Bool("tap", false, "Check formulae and casks within the given tap, specified as <user>`/`<repo>.")
livecheckCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
rootCmd.AddCommand(livecheckCmd)
}