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

Function newDeploymentsCmd

cmd/list/deployments.go:25–42  ·  view source on GitHub ↗
(f factory.Factory, globalFlags *flags.GlobalFlags)

Source from the content-addressed store, hash-verified

23}
24
25func newDeploymentsCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command {
26 cmd := &deploymentsCmd{GlobalFlags: globalFlags}
27
28 return &cobra.Command{
29 Use: "deployments",
30 Short: "Lists and shows the status of all deployments",
31 Long: `
32#######################################################
33############# devspace list deployments ###############
34#######################################################
35Lists the status of all deployments
36#######################################################
37 `,
38 Args: cobra.NoArgs,
39 RunE: func(cobraCmd *cobra.Command, args []string) error {
40 return cmd.RunDeploymentsStatus(f, cobraCmd, args)
41 }}
42}
43
44// RunDeploymentsStatus executes the devspace status deployments command logic
45func (cmd *deploymentsCmd) RunDeploymentsStatus(f factory.Factory, cobraCmd *cobra.Command, args []string) error {

Callers 1

NewListCmdFunction · 0.85

Calls 1

RunDeploymentsStatusMethod · 0.95

Tested by

no test coverage detected