MCPcopy
hub / github.com/helm/helm / newPluginUninstallCmd

Function newPluginUninstallCmd

pkg/cmd/plugin_uninstall.go:35–53  ·  view source on GitHub ↗
(out io.Writer)

Source from the content-addressed store, hash-verified

33}
34
35func newPluginUninstallCmd(out io.Writer) *cobra.Command {
36 o := &pluginUninstallOptions{}
37
38 cmd := &cobra.Command{
39 Use: "uninstall <plugin>...",
40 Aliases: []string{"rm", "remove"},
41 Short: "uninstall one or more Helm plugins",
42 ValidArgsFunction: func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
43 return compListPlugins(toComplete, args), cobra.ShellCompDirectiveNoFileComp
44 },
45 PreRunE: func(_ *cobra.Command, args []string) error {
46 return o.complete(args)
47 },
48 RunE: func(_ *cobra.Command, _ []string) error {
49 return o.run(out)
50 },
51 }
52 return cmd
53}
54
55func (o *pluginUninstallOptions) complete(args []string) error {
56 if len(args) == 0 {

Callers 1

newPluginCmdFunction · 0.85

Calls 3

completeMethod · 0.95
runMethod · 0.95
compListPluginsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…