(f factory.Factory, flags *flags.GlobalFlags)
| 14 | } |
| 15 | |
| 16 | func newVarsCmd(f factory.Factory, flags *flags.GlobalFlags) *cobra.Command { |
| 17 | cmd := &varsCmd{ |
| 18 | GlobalFlags: flags, |
| 19 | } |
| 20 | |
| 21 | varsCmd := &cobra.Command{ |
| 22 | Use: "vars", |
| 23 | Short: "Resets the current config vars", |
| 24 | Long: ` |
| 25 | ####################################################### |
| 26 | ############### devspace reset vars ################### |
| 27 | ####################################################### |
| 28 | Resets the saved variables of the current config |
| 29 | |
| 30 | Examples: |
| 31 | devspace reset vars |
| 32 | ####################################################### |
| 33 | `, |
| 34 | Args: cobra.NoArgs, |
| 35 | RunE: func(cobraCmd *cobra.Command, args []string) error { |
| 36 | return cmd.RunResetVars(f) |
| 37 | }} |
| 38 | |
| 39 | return varsCmd |
| 40 | } |
| 41 | |
| 42 | // RunResetVars executes the reset vars command logic |
| 43 | func (cmd *varsCmd) RunResetVars(f factory.Factory) error { |
no test coverage detected