MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / providerDisableCommand

Method providerDisableCommand

internal/cli/provider_cmd.go:477–484  ·  view source on GitHub ↗
(state *globalState)

Source from the content-addressed store, hash-verified

475}
476
477func (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
486func toggleEnabledRunE(state *globalState, enabled bool) func(*cobra.Command, []string) error {
487 return func(cmd *cobra.Command, args []string) error {

Callers 1

providerCommandMethod · 0.95

Calls 1

toggleEnabledRunEFunction · 0.85

Tested by

no test coverage detected