pulumi/cmd/plugin.go
joeduffy ffe8c4681a Rename plugin prune to rm
This change renames prune to rm, to match what we use for other
similar commands.  Someday perhaps we will add a prune that uses
some smarts to prune old plugins, etc.

Also tidy up some minor things about the command.  For example,
we now require --all if you want to truly clear the entire plugin
cache.  We also print more detail, like the full list of plugins
to be removed, in the confirmation prompt.
2018-02-19 09:06:02 -08:00

34 lines
1.1 KiB
Go

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
package cmd
import (
"github.com/spf13/cobra"
"github.com/pulumi/pulumi/pkg/util/cmdutil"
)
func newPluginCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "plugin",
Short: "Manage language and resource provider plugins",
Long: "Manage language and resource provider plugins.\n" +
"\n" +
"Pulumi uses dynamically loaded plugins as an extensibility mechanism for\n" +
"supporting any number of languages and resource providers. These are automatically\n" +
"managed by the system and downloaded as needed when running your Pulumi programs.\n" +
"\n" +
"You may write your own plugins, for example to implement custom languages or\n" +
"resources, although most people will never need to do this. To understand how to\n" +
"write and distribute your own plugins, please consult the relevant documentation.\n" +
"\n" +
"The plugin family of commands provides a way of explicitly managing plugins.",
Args: cmdutil.NoArgs,
}
cmd.AddCommand(newPluginInstallCmd())
cmd.AddCommand(newPluginLsCmd())
cmd.AddCommand(newPluginRmCmd())
return cmd
}