This commit is contained in:
Rogee
2024-12-21 11:33:32 +08:00
parent f232f7cdff
commit f7504d57f9
3 changed files with 51 additions and 2 deletions

View File

@@ -4,8 +4,9 @@ import "github.com/spf13/cobra"
func CommandGen(root *cobra.Command) {
cmd := &cobra.Command{
Use: "gen",
Short: "Generate code",
Use: "gen",
Short: "Generate code",
PersistentPostRunE: commandFmtE,
}
cmd.PersistentFlags().StringP("config", "c", "config.toml", "database config file")