lint: convert snake to camel case
This commit is contained in:
14
cmd/main.go
14
cmd/main.go
@@ -16,19 +16,19 @@ const (
|
||||
)
|
||||
|
||||
func main() {
|
||||
root_cmd := &cobra.Command{
|
||||
rootCmd := &cobra.Command{
|
||||
Use: "gas",
|
||||
Version: version.String(),
|
||||
SilenceErrors: true,
|
||||
SilenceUsage: true,
|
||||
}
|
||||
// Print a bare version string ("v0.0.4"), rather than cobra's "gas version v0.0.4".
|
||||
root_cmd.SetVersionTemplate("{{.Version}}\n")
|
||||
root_cmd.AddCommand(sqlite_lint)
|
||||
root_cmd.AddCommand(cmd_init)
|
||||
root_cmd.AddCommand(generate_model)
|
||||
root_cmd.AddCommand(cmd_version)
|
||||
if err := root_cmd.Execute(); err != nil {
|
||||
rootCmd.SetVersionTemplate("{{.Version}}\n")
|
||||
rootCmd.AddCommand(sqliteLint)
|
||||
rootCmd.AddCommand(cmdInit)
|
||||
rootCmd.AddCommand(generateModel)
|
||||
rootCmd.AddCommand(cmdVersion)
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println(RED + err.Error() + RESET)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user