From ffec80f50565f2ef628f536b397aa29918b437a7 Mon Sep 17 00:00:00 2001 From: MrJack <36191829+biagiopietro@users.noreply.github.com> Date: Tue, 24 Feb 2026 16:44:47 +0100 Subject: [PATCH] Update pkg/cmd/plugin_update.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com> --- pkg/cmd/plugin_update.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/plugin_update.go b/pkg/cmd/plugin_update.go index 6bffe1658..bbb12f0d4 100644 --- a/pkg/cmd/plugin_update.go +++ b/pkg/cmd/plugin_update.go @@ -57,7 +57,12 @@ func newPluginUpdateCmd(out io.Writer) *cobra.Command { Short: "update one or more Helm plugins", Long: pluginUpdateDesc, ValidArgsFunction: func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { - return compListPlugins(toComplete, args), cobra.ShellCompDirectiveNoFileComp + ignoredNames := make([]string, len(args)) + for i, arg := range args { + name, _ := parsePluginVersion(arg) + ignoredNames[i] = name + } + return compListPlugins(toComplete, ignoredNames), cobra.ShellCompDirectiveNoFileComp }, PreRunE: func(_ *cobra.Command, args []string) error { return o.complete(args)