(ch *cmdutil.Helper)
| 8 | ) |
| 9 | |
| 10 | func SwitchCmd(ch *cmdutil.Helper) *cobra.Command { |
| 11 | switchCmd := &cobra.Command{ |
| 12 | Use: "switch {stage|prod|dev}", |
| 13 | Short: "switch", |
| 14 | RunE: func(cmd *cobra.Command, args []string) error { |
| 15 | return errors.New("this command has been deprecated (use `rill devtool switch-env` instead)") |
| 16 | }, |
| 17 | } |
| 18 | |
| 19 | return switchCmd |
| 20 | } |