Skip to content

Commit

Permalink
feat: add help command
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Nov 30, 2023
1 parent 4d6e7d8 commit 7152980
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/kcl/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ func New() *cobra.Command {
// Module & Registry commands
cmd.AddCommand(NewModCmd())
cmd.AddCommand(NewRegistryCmd())
// Server commands
// Server command
cmd.AddCommand(NewServerCmd())
// Version & Help commands
// Version command
cmd.AddCommand(NewVersionCmd())
cmd.SetHelpCommand(&cobra.Command{}) // Disable the help command
// Plugin commands
// Plugin commands e.g. kcl language server for kcl-language-server
bootstrapCmdPlugin(cmd, plugin.NewDefaultPluginHandler([]string{cmdName}))

return cmd
Expand Down

0 comments on commit 7152980

Please sign in to comment.