(f factory.Factory, globalFlags *flags.GlobalFlags)
| 23 | } |
| 24 | |
| 25 | func 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 | ####################################################### |
| 35 | Lists 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 |
| 45 | func (cmd *deploymentsCmd) RunDeploymentsStatus(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |
no test coverage detected