NewSetCmd creates a new cobra command for the use sub command
(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)
| 9 | |
| 10 | // NewSetCmd creates a new cobra command for the use sub command |
| 11 | func NewSetCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command { |
| 12 | setCmd := &cobra.Command{ |
| 13 | Use: "set", |
| 14 | Short: "Sets global configuration changes", |
| 15 | Long: ` |
| 16 | ####################################################### |
| 17 | #################### devspace set ##################### |
| 18 | ####################################################### |
| 19 | `, |
| 20 | Args: cobra.NoArgs, |
| 21 | } |
| 22 | |
| 23 | setCmd.AddCommand(newVarCmd(f, globalFlags)) |
| 24 | |
| 25 | // Add plugin commands |
| 26 | plugin.AddPluginCommands(setCmd, plugins, "set") |
| 27 | return setCmd |
| 28 | } |
no test coverage detected