Skip to content

Commit

Permalink
fix: completion command that is not a plugin
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed May 11, 2024
1 parent dabaa74 commit 9ede2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kcl/commands/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func bootstrapCmdPlugin(cmd *cobra.Command, pluginHandler plugin.PluginHandler)
}
switch cmdName {
// Don't search for a plugin
case "help", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd:
case "help", "completion", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd:
default:
if !builtinSubCmdExist {
if err := plugin.HandlePluginCommand(pluginHandler, cmdPathPieces, false); err != nil {
Expand Down

0 comments on commit 9ede2c5

Please sign in to comment.