(deps commandDeps)
| 483 | } |
| 484 | |
| 485 | func 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 | |
| 505 | func newBridgeTargetsCommand(deps commandDeps) *cobra.Command { |
| 506 | var query string |
no test coverage detected