Add package initialization subcommand and package
All checks were successful
CI / release-test (push) Successful in 26s

This commit is contained in:
2025-08-24 14:45:57 -07:00
parent 0bc951748d
commit 2c8b842f17
6 changed files with 142 additions and 4 deletions

View File

@@ -14,17 +14,17 @@ const (
)
func main() {
rootCmd := &cobra.Command{
root_cmd := &cobra.Command{
Use: "gas",
SilenceErrors: true,
SilenceUsage: true,
}
rootCmd.AddCommand(sqlite_lint)
if err := rootCmd.Execute(); err != nil {
root_cmd.AddCommand(sqlite_lint)
root_cmd.AddCommand(cmd_init)
if err := root_cmd.Execute(); err != nil {
fmt.Println(RED + err.Error() + RESET)
os.Exit(1)
}
}
// Subcommand "init"
// Subcommand "generate_models"