MCPcopy Index your code
hub / github.com/devspace-sh/devspace / newPluginCmd

Function newPluginCmd

cmd/remove/plugin.go:12–33  ·  view source on GitHub ↗
(f factory.Factory)

Source from the content-addressed store, hash-verified

10}
11
12func newPluginCmd(f factory.Factory) *cobra.Command {
13 cmd := &pluginCmd{}
14 pluginCmd := &cobra.Command{
15 Use: "plugin",
16 Short: "Removes a devspace plugin",
17 Long: `
18#######################################################
19############# devspace remove plugin ##################
20#######################################################
21Removes a plugin
22
23devspace remove plugin my-plugin
24#######################################################
25 `,
26 Args: cobra.ExactArgs(1),
27 RunE: func(cobraCmd *cobra.Command, args []string) error {
28 plugin.SetPluginCommand(cobraCmd, args)
29 return cmd.Run(f, cobraCmd, args)
30 }}
31
32 return pluginCmd
33}
34
35// Run executes the command logic
36func (cmd *pluginCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error {

Callers 1

NewRemoveCmdFunction · 0.70

Calls 2

RunMethod · 0.95
SetPluginCommandFunction · 0.92

Tested by

no test coverage detected