Skip to content

Commit e079cf0

Browse files
committed
gencode: add aliases and disableautogen tag
1 parent cff9e44 commit e079cf0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/new_subcommand.gotmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ import (
2828
var {{.Name}} = &cobra.Command{
2929
Use: "{{.Use}}",
3030
Short: "{{.Short}}",
31-
31+
Aliases: []string{""},
3232
// NOTE(generator): Ensure to add some examples for this command
3333
Example: "",
3434
SilenceErrors: true,
3535
SilenceUsage: true,
36+
DisableAutoGenTag: true,
3637
Args: cobra.ExactArgs({{.MaxArgs}}),
3738

3839
// NOTE(generator): remove PreRunE if not required

0 commit comments

Comments
 (0)