-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
test.go
27 lines (23 loc) · 959 Bytes
/
test.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 testCmd = &cobra.Command{
Use: "test",
Short: "Run the test method provided by an installed formula",
GroupID: "developer",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(testCmd).Standalone()
testCmd.Flags().Bool("HEAD", false, "Test the HEAD version of a formula.")
testCmd.Flags().Bool("debug", false, "Display any debugging information.")
testCmd.Flags().Bool("force", false, "Test formulae even if they are unlinked.")
testCmd.Flags().Bool("help", false, "Show this message.")
testCmd.Flags().Bool("keep-tmp", false, "Retain the temporary files created for the test.")
testCmd.Flags().Bool("quiet", false, "Make some output more quiet.")
testCmd.Flags().Bool("retry", false, "Retry if a testing fails.")
testCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
rootCmd.AddCommand(testCmd)
}