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

Function newBridgeRoutesCommand

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

Source from the content-addressed store, hash-verified

483}
484
485func newBridgeRoutesCommand(deps commandDeps) *cobra.Command {
486 return &cobra.Command{
487 Use: "routes <id>",
488 Short: "Inspect routes for one bridge instance",
489 Args: exactOneNonBlankArg(),
490 RunE: func(cmd *cobra.Command, args []string) error {
491 client, err := clientFromDeps(deps)
492 if err != nil {
493 return err
494 }
495
496 routes, err := client.BridgeRoutes(cmd.Context(), args[0])
497 if err != nil {
498 return err
499 }
500 return writeCommandOutput(cmd, bridgeRoutesBundle(routes, deps.now))
501 },
502 }
503}
504
505func newBridgeTargetsCommand(deps commandDeps) *cobra.Command {
506 var query string

Callers 1

newBridgeCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bridgeRoutesBundleFunction · 0.85
BridgeRoutesMethod · 0.65

Tested by

no test coverage detected