From 58043d8657d7b5e1c8a23bdc16dc025e7227226f Mon Sep 17 00:00:00 2001 From: Efrat19 Date: Sun, 6 Oct 2019 21:47:20 +0300 Subject: [PATCH 1/3] helm plugin subcommands aliases Signed-off-by: Efrat19 --- cmd/helm/plugin_list.go | 3 ++- cmd/helm/plugin_remove.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/helm/plugin_list.go b/cmd/helm/plugin_list.go index eccc54e2d..eb1cc88ef 100644 --- a/cmd/helm/plugin_list.go +++ b/cmd/helm/plugin_list.go @@ -25,7 +25,8 @@ import ( func newPluginListCmd(out io.Writer) *cobra.Command { cmd := &cobra.Command{ - Use: "list", + Use: "list", + Aliases: []string{"ls"}, Short: "list installed Helm plugins", RunE: func(cmd *cobra.Command, args []string) error { debug("pluginDirs: %s", settings.PluginsDirectory) diff --git a/cmd/helm/plugin_remove.go b/cmd/helm/plugin_remove.go index b632ab396..0879bd65e 100644 --- a/cmd/helm/plugin_remove.go +++ b/cmd/helm/plugin_remove.go @@ -35,6 +35,7 @@ func newPluginRemoveCmd(out io.Writer) *cobra.Command { o := &pluginRemoveOptions{} cmd := &cobra.Command{ Use: "remove ...", + Aliases: []string{"rm"}, Short: "remove one or more Helm plugins", PreRunE: func(cmd *cobra.Command, args []string) error { return o.complete(args) From 2cbbc018e743696cfc38565b29be1bf2c38676d1 Mon Sep 17 00:00:00 2001 From: Efrat19 Date: Sun, 6 Oct 2019 21:56:22 +0300 Subject: [PATCH 2/3] remove trailing whitespace Signed-off-by: Efrat19 --- cmd/helm/plugin_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/plugin_list.go b/cmd/helm/plugin_list.go index eb1cc88ef..650489618 100644 --- a/cmd/helm/plugin_list.go +++ b/cmd/helm/plugin_list.go @@ -25,7 +25,7 @@ import ( func newPluginListCmd(out io.Writer) *cobra.Command { cmd := &cobra.Command{ - Use: "list", + Use: "list", Aliases: []string{"ls"}, Short: "list installed Helm plugins", RunE: func(cmd *cobra.Command, args []string) error { From f9175ea5d54390914fc60c8063b87183980647ed Mon Sep 17 00:00:00 2001 From: Efrat19 Date: Sun, 6 Oct 2019 21:58:26 +0300 Subject: [PATCH 3/3] run golint Signed-off-by: Efrat19 --- cmd/helm/plugin_list.go | 4 ++-- cmd/helm/plugin_remove.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/helm/plugin_list.go b/cmd/helm/plugin_list.go index 650489618..2f37a8028 100644 --- a/cmd/helm/plugin_list.go +++ b/cmd/helm/plugin_list.go @@ -25,9 +25,9 @@ import ( func newPluginListCmd(out io.Writer) *cobra.Command { cmd := &cobra.Command{ - Use: "list", + Use: "list", Aliases: []string{"ls"}, - Short: "list installed Helm plugins", + Short: "list installed Helm plugins", RunE: func(cmd *cobra.Command, args []string) error { debug("pluginDirs: %s", settings.PluginsDirectory) plugins, err := findPlugins(settings.PluginsDirectory) diff --git a/cmd/helm/plugin_remove.go b/cmd/helm/plugin_remove.go index 0879bd65e..6d517c15b 100644 --- a/cmd/helm/plugin_remove.go +++ b/cmd/helm/plugin_remove.go @@ -34,9 +34,9 @@ type pluginRemoveOptions struct { func newPluginRemoveCmd(out io.Writer) *cobra.Command { o := &pluginRemoveOptions{} cmd := &cobra.Command{ - Use: "remove ...", + Use: "remove ...", Aliases: []string{"rm"}, - Short: "remove one or more Helm plugins", + Short: "remove one or more Helm plugins", PreRunE: func(cmd *cobra.Command, args []string) error { return o.complete(args) },