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

Function NewUpdateCmd

cmd/update/update.go:11–27  ·  view source on GitHub ↗

NewUpdateCmd creates a new cobra command for the status sub command

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

Source from the content-addressed store, hash-verified

9
10// NewUpdateCmd creates a new cobra command for the status sub command
11func NewUpdateCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command {
12 updateCmd := &cobra.Command{
13 Use: "update",
14 Short: "Updates the current config",
15 Long: `
16#######################################################
17################## devspace update ####################
18#######################################################
19 `,
20 Args: cobra.NoArgs,
21 }
22 updateCmd.AddCommand(newPluginCmd(f))
23
24 // Add plugin commands
25 plugin.AddPluginCommands(updateCmd, plugins, "update")
26 return updateCmd
27}

Callers 1

BuildRootFunction · 0.92

Calls 2

AddPluginCommandsFunction · 0.92
newPluginCmdFunction · 0.70

Tested by

no test coverage detected