From 9ede2c5d26b122e3152e94d353bba893334dcf50 Mon Sep 17 00:00:00 2001 From: peefy Date: Sat, 11 May 2024 17:41:10 +0800 Subject: [PATCH 1/2] fix: completion command that is not a plugin Signed-off-by: peefy --- cmd/kcl/commands/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kcl/commands/plugin.go b/cmd/kcl/commands/plugin.go index 872a58c..75a3bdc 100644 --- a/cmd/kcl/commands/plugin.go +++ b/cmd/kcl/commands/plugin.go @@ -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 { From 4da08ff94fc2a4d9b3a5a57e81f3eac5537f1e68 Mon Sep 17 00:00:00 2001 From: peefy Date: Sat, 11 May 2024 17:42:01 +0800 Subject: [PATCH 2/2] fix: plugin command Signed-off-by: peefy --- VERSION | 2 +- pkg/version/version.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 5c5cbb3..021abec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8.8 \ No newline at end of file +0.8.9 \ No newline at end of file diff --git a/pkg/version/version.go b/pkg/version/version.go index 4261489..f0d9771 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -32,8 +32,9 @@ func getVersion(version string) string { } const ( - VersionTypeLatest = Version_0_8_8 + VersionTypeLatest = Version_0_8_9 + Version_0_8_9 VersionType = "0.8.9" Version_0_8_8 VersionType = "0.8.8" Version_0_8_7 VersionType = "0.8.7" Version_0_8_6 VersionType = "0.8.6"