fix: template

This commit is contained in:
Rogee
2024-12-21 00:25:12 +08:00
parent 58450dd63d
commit 6f04023a42
7 changed files with 26 additions and 20 deletions

View File

@@ -16,9 +16,10 @@ import (
func CommandGenEnum(root *cobra.Command) {
cmd := &cobra.Command{
Use: "enum",
Short: "Generate enums",
RunE: commandGenEnumE,
Use: "enum",
Aliases: []string{"e"},
Short: "Generate enums",
RunE: commandGenEnumE,
}
cmd.Flags().BoolP("flag", "f", true, "Flag enum values")