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

Function newVarsCmd

cmd/reset/vars.go:16–40  ·  view source on GitHub ↗
(f factory.Factory, flags *flags.GlobalFlags)

Source from the content-addressed store, hash-verified

14}
15
16func newVarsCmd(f factory.Factory, flags *flags.GlobalFlags) *cobra.Command {
17 cmd := &varsCmd{
18 GlobalFlags: flags,
19 }
20
21 varsCmd := &cobra.Command{
22 Use: "vars",
23 Short: "Resets the current config vars",
24 Long: `
25#######################################################
26############### devspace reset vars ###################
27#######################################################
28Resets the saved variables of the current config
29
30Examples:
31devspace reset vars
32#######################################################
33 `,
34 Args: cobra.NoArgs,
35 RunE: func(cobraCmd *cobra.Command, args []string) error {
36 return cmd.RunResetVars(f)
37 }}
38
39 return varsCmd
40}
41
42// RunResetVars executes the reset vars command logic
43func (cmd *varsCmd) RunResetVars(f factory.Factory) error {

Callers 1

NewResetCmdFunction · 0.70

Calls 1

RunResetVarsMethod · 0.95

Tested by

no test coverage detected