mirror of
https://github.com/helm/helm.git
synced 2026-05-22 09:56:35 -04:00
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>
This commit is contained in:
parent
b13f5de34d
commit
ffec80f505
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue