-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
tc.go
29 lines (25 loc) · 1.16 KB
/
tc.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
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var tcCmd = &cobra.Command{
Use: "tc",
Short: "Check for typechecking errors using Sorbet",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(tcCmd).Standalone()
tcCmd.Flags().Bool("debug", false, "Display any debugging information.")
tcCmd.Flags().Bool("dir", false, "Typecheck all files in a specific directory.")
tcCmd.Flags().Bool("file", false, "Typecheck a single file.")
tcCmd.Flags().Bool("fix", false, "Automatically fix type errors.")
tcCmd.Flags().Bool("help", false, "Show this message.")
tcCmd.Flags().Bool("ignore", false, "Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet).")
tcCmd.Flags().Bool("quiet", false, "Silence all non-critical errors.")
tcCmd.Flags().Bool("suggest-typed", false, "Try upgrading `typed` sigils.")
tcCmd.Flags().Bool("update", false, "Update RBI files.")
tcCmd.Flags().Bool("update-all", false, "Update all RBI files rather than just updated gems.")
tcCmd.Flags().Bool("verbose", false, "Make some output more verbose.")
rootCmd.AddCommand(tcCmd)
}