NewAddCmd creates a new cobra command
(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)
| 9 | |
| 10 | // NewAddCmd creates a new cobra command |
| 11 | func NewAddCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command { |
| 12 | addCmd := &cobra.Command{ |
| 13 | Use: "add", |
| 14 | Short: "Adds something to devspace.yaml", |
| 15 | Long: ` |
| 16 | ####################################################### |
| 17 | #################### devspace add ##################### |
| 18 | ####################################################### |
| 19 | Adds config sections to devspace.yaml |
| 20 | `, |
| 21 | Args: cobra.NoArgs, |
| 22 | } |
| 23 | |
| 24 | addCmd.AddCommand(newPluginCmd(f)) |
| 25 | |
| 26 | // Add plugin commands |
| 27 | plugin.AddPluginCommands(addCmd, plugins, "add") |
| 28 | return addCmd |
| 29 | } |
no test coverage detected