lint: convert snake to camel case

This commit is contained in:
2026-10-24 18:56:45 -07:00
parent f8d79761f4
commit ef71828ce2
12 changed files with 100 additions and 101 deletions

View File

@@ -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)
}