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

Function newBridgeEnableCommand

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

Source from the content-addressed store, hash-verified

423}
424
425func newBridgeEnableCommand(deps commandDeps) *cobra.Command {
426 return &cobra.Command{
427 Use: "enable <id>",
428 Short: "Enable a bridge instance",
429 Args: exactOneNonBlankArg(),
430 RunE: func(cmd *cobra.Command, args []string) error {
431 client, err := clientFromDeps(deps)
432 if err != nil {
433 return err
434 }
435
436 item, err := client.EnableBridge(cmd.Context(), args[0])
437 if err != nil {
438 return err
439 }
440 return writeCommandOutput(cmd, bridgeBundle(item))
441 },
442 }
443}
444
445func newBridgeDisableCommand(deps commandDeps) *cobra.Command {
446 return &cobra.Command{

Callers 1

newBridgeCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bridgeBundleFunction · 0.85
EnableBridgeMethod · 0.65

Tested by

no test coverage detected