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

Function NewResetCmd

cmd/reset/reset.go:11–30  ·  view source on GitHub ↗

NewResetCmd creates a new cobra command

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

Source from the content-addressed store, hash-verified

9
10// NewResetCmd creates a new cobra command
11func NewResetCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command {
12 resetCmd := &cobra.Command{
13 Use: "reset",
14 Short: "Resets an cluster token",
15 Long: `
16#######################################################
17################## devspace reset #####################
18#######################################################
19 `,
20 Args: cobra.NoArgs,
21 }
22
23 resetCmd.AddCommand(newVarsCmd(f, globalFlags))
24 resetCmd.AddCommand(newDependenciesCmd(f))
25 resetCmd.AddCommand(newPodsCmd(f, globalFlags))
26
27 // Add plugin commands
28 plugin.AddPluginCommands(resetCmd, plugins, "reset")
29 return resetCmd
30}

Callers 1

BuildRootFunction · 0.92

Calls 4

AddPluginCommandsFunction · 0.92
newDependenciesCmdFunction · 0.85
newPodsCmdFunction · 0.85
newVarsCmdFunction · 0.70

Tested by

no test coverage detected