Add package initialization subcommand and package
All checks were successful
CI / release-test (push) Successful in 26s
All checks were successful
CI / release-test (push) Successful in 26s
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user