Skip to content

Commit

Permalink
feat: add command name aliases for the run and doc command
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 26, 2023
1 parent 92b0d47 commit 3baba26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kcl/commands/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func NewDocCmd() *cobra.Command {
Long: docDesc,
Example: docExample,
SilenceUsage: true,
Aliases: []string{"d"},
}

cmd.AddCommand(NewDocGenerateCmd())
Expand Down
1 change: 1 addition & 0 deletions cmd/kcl/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func NewRunCmd() *cobra.Command {
}
return o.Run()
},
Aliases: []string{"r"},
SilenceUsage: true,
}

Expand Down

0 comments on commit 3baba26

Please sign in to comment.