gas-stack/cmd/main.go
wispem-wantex 2c8b842f17
All checks were successful
CI / release-test (push) Successful in 26s
Add package initialization subcommand and package
2025-08-24 14:47:37 -07:00

31 lines
457 B
Go

package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
const (
GREEN = "\033[0;32m"
RED = "\033[0;31m"
RESET = "\033[0m"
)
func main() {
root_cmd := &cobra.Command{
Use: "gas",
SilenceErrors: true,
SilenceUsage: true,
}
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 "generate_models"