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

Function NewListCmd

cmd/list/list.go:11–36  ·  view source on GitHub ↗

NewListCmd creates a new cobra command

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

Source from the content-addressed store, hash-verified

9
10// NewListCmd creates a new cobra command
11func NewListCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command {
12 listCmd := &cobra.Command{
13 Use: "list",
14 Short: "Lists configuration",
15 Long: `
16#######################################################
17#################### devspace list ####################
18#######################################################
19 `,
20 Args: cobra.NoArgs,
21 }
22
23 listCmd.AddCommand(newSyncCmd(f, globalFlags))
24 listCmd.AddCommand(newPortsCmd(f, globalFlags))
25 listCmd.AddCommand(newProfilesCmd(f))
26 listCmd.AddCommand(newVarsCmd(f, globalFlags))
27 listCmd.AddCommand(newDeploymentsCmd(f, globalFlags))
28 listCmd.AddCommand(newContextsCmd(f))
29 listCmd.AddCommand(newPluginsCmd(f))
30 listCmd.AddCommand(newCommandsCmd(f, globalFlags))
31 listCmd.AddCommand(newNamespacesCmd(f, globalFlags))
32
33 // Add plugin commands
34 plugin.AddPluginCommands(listCmd, plugins, "list")
35 return listCmd
36}

Callers 1

BuildRootFunction · 0.92

Calls 10

AddPluginCommandsFunction · 0.92
newSyncCmdFunction · 0.85
newPortsCmdFunction · 0.85
newProfilesCmdFunction · 0.85
newDeploymentsCmdFunction · 0.85
newContextsCmdFunction · 0.85
newPluginsCmdFunction · 0.85
newCommandsCmdFunction · 0.85
newNamespacesCmdFunction · 0.85
newVarsCmdFunction · 0.70

Tested by

no test coverage detected