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

Function NewSetCmd

cmd/set/set.go:11–28  ·  view source on GitHub ↗

NewSetCmd creates a new cobra command for the use sub command

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

Source from the content-addressed store, hash-verified

9
10// NewSetCmd creates a new cobra command for the use sub command
11func NewSetCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command {
12 setCmd := &cobra.Command{
13 Use: "set",
14 Short: "Sets global configuration changes",
15 Long: `
16#######################################################
17#################### devspace set #####################
18#######################################################
19 `,
20 Args: cobra.NoArgs,
21 }
22
23 setCmd.AddCommand(newVarCmd(f, globalFlags))
24
25 // Add plugin commands
26 plugin.AddPluginCommands(setCmd, plugins, "set")
27 return setCmd
28}

Callers 1

BuildRootFunction · 0.92

Calls 2

AddPluginCommandsFunction · 0.92
newVarCmdFunction · 0.85

Tested by

no test coverage detected