Merge pull request #6588 from Efrat19/feature/6558

helm plugin subcommands aliases - helm3
pull/6589/head
Matthew Fisher 5 years ago committed by GitHub
commit f35881d299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,8 +25,9 @@ import (
func newPluginListCmd(out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "list",
Short: "list installed Helm plugins",
Use: "list",
Aliases: []string{"ls"},
Short: "list installed Helm plugins",
RunE: func(cmd *cobra.Command, args []string) error {
debug("pluginDirs: %s", settings.PluginsDirectory)
plugins, err := findPlugins(settings.PluginsDirectory)

@ -34,8 +34,9 @@ type pluginRemoveOptions struct {
func newPluginRemoveCmd(out io.Writer) *cobra.Command {
o := &pluginRemoveOptions{}
cmd := &cobra.Command{
Use: "remove <plugin>...",
Short: "remove one or more Helm plugins",
Use: "remove <plugin>...",
Aliases: []string{"rm"},
Short: "remove one or more Helm plugins",
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.complete(args)
},

Loading…
Cancel
Save