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

Function NewRemoveCmd

cmd/remove/remove.go:11–29  ·  view source on GitHub ↗

NewRemoveCmd creates a new cobra command

(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)

Source from the content-addressed store, hash-verified

9
10// NewRemoveCmd creates a new cobra command
11func NewRemoveCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command {
12 removeCmd := &cobra.Command{
13 Use: "remove",
14 Short: "Removes devspace configuration",
15 Long: `
16#######################################################
17################## devspace remove ####################
18#######################################################
19 `,
20 Args: cobra.NoArgs,
21 }
22
23 removeCmd.AddCommand(newContextCmd(f))
24 removeCmd.AddCommand(newPluginCmd(f))
25
26 // Add plugin commands
27 plugin.AddPluginCommands(removeCmd, plugins, "remove")
28 return removeCmd
29}

Callers 1

BuildRootFunction · 0.92

Calls 3

AddPluginCommandsFunction · 0.92
newContextCmdFunction · 0.70
newPluginCmdFunction · 0.70

Tested by

no test coverage detected