File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ func main() {
11
11
Short : "GitOpsSets CLI" ,
12
12
}
13
13
14
- rootCmd .AddCommand (cmd .NewGenerateCommand ())
14
+ rootCmd .AddCommand (cmd .NewGenerateCommand ("generate" ))
15
15
cobra .CheckErr (rootCmd .Execute ())
16
16
}
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ import (
30
30
)
31
31
32
32
// NewGenerateCommand creates and returns a new Command that renders GitOpsSets.
33
- func NewGenerateCommand () * cobra.Command {
33
+ func NewGenerateCommand (name string ) * cobra.Command {
34
34
var enabledGenerators []string
35
35
var disableClusterAccess bool
36
36
37
37
cmd := & cobra.Command {
38
- Use : "generate [filename]" ,
38
+ Use : fmt . Sprintf ( "%s [filename]", name ) ,
39
39
Short : "Render GitOpsSet from the CLI" ,
40
40
Args : cobra .ExactArgs (1 ),
41
41
RunE : func (cmd * cobra.Command , args []string ) error {
You can’t perform that action at this time.
0 commit comments