(f factory.Factory, globalFlags *flags.GlobalFlags)
| 19 | } |
| 20 | |
| 21 | func newCommandsCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command { |
| 22 | cmd := &commandsCmd{GlobalFlags: globalFlags} |
| 23 | |
| 24 | commandsCmd := &cobra.Command{ |
| 25 | Use: "commands", |
| 26 | Short: "Lists all custom DevSpace commands", |
| 27 | Long: ` |
| 28 | ####################################################### |
| 29 | ############## devspace list commands ################# |
| 30 | ####################################################### |
| 31 | Lists all DevSpace custom commands defined in the |
| 32 | devspace.yaml |
| 33 | ####################################################### |
| 34 | `, |
| 35 | Args: cobra.NoArgs, |
| 36 | RunE: func(cobraCmd *cobra.Command, args []string) error { |
| 37 | return cmd.RunListCommands(f, cobraCmd, args) |
| 38 | }} |
| 39 | |
| 40 | return commandsCmd |
| 41 | } |
| 42 | |
| 43 | // RunListCommands runs the list command logic |
| 44 | func (cmd *commandsCmd) RunListCommands(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |
no test coverage detected