NewUpdateCmd creates a new cobra command for the status sub command
(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)
| 9 | |
| 10 | // NewUpdateCmd creates a new cobra command for the status sub command |
| 11 | func NewUpdateCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command { |
| 12 | updateCmd := &cobra.Command{ |
| 13 | Use: "update", |
| 14 | Short: "Updates the current config", |
| 15 | Long: ` |
| 16 | ####################################################### |
| 17 | ################## devspace update #################### |
| 18 | ####################################################### |
| 19 | `, |
| 20 | Args: cobra.NoArgs, |
| 21 | } |
| 22 | updateCmd.AddCommand(newPluginCmd(f)) |
| 23 | |
| 24 | // Add plugin commands |
| 25 | plugin.AddPluginCommands(updateCmd, plugins, "update") |
| 26 | return updateCmd |
| 27 | } |
no test coverage detected