(state *globalState)
| 475 | } |
| 476 | |
| 477 | func (a *App) providerDisableCommand(state *globalState) *cobra.Command { |
| 478 | return &cobra.Command{ |
| 479 | Use: "disable NAME", |
| 480 | Short: "Mark a provider as disabled", |
| 481 | Args: cobra.ExactArgs(1), |
| 482 | RunE: toggleEnabledRunE(state, false), |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | func toggleEnabledRunE(state *globalState, enabled bool) func(*cobra.Command, []string) error { |
| 487 | return func(cmd *cobra.Command, args []string) error { |
no test coverage detected