MCPcopy Create free account
hub / github.com/compozy/agh / newBridgeDisableCommand

Function newBridgeDisableCommand

internal/cli/bridge.go:445–463  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

443}
444
445func newBridgeDisableCommand(deps commandDeps) *cobra.Command {
446 return &cobra.Command{
447 Use: "disable <id>",
448 Short: "Disable a bridge instance",
449 Args: exactOneNonBlankArg(),
450 RunE: func(cmd *cobra.Command, args []string) error {
451 client, err := clientFromDeps(deps)
452 if err != nil {
453 return err
454 }
455
456 item, err := client.DisableBridge(cmd.Context(), args[0])
457 if err != nil {
458 return err
459 }
460 return writeCommandOutput(cmd, bridgeBundle(item))
461 },
462 }
463}
464
465func newBridgeRestartCommand(deps commandDeps) *cobra.Command {
466 return &cobra.Command{

Callers 1

newBridgeCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bridgeBundleFunction · 0.85
DisableBridgeMethod · 0.65

Tested by

no test coverage detected