(deps commandDeps)
| 531 | } |
| 532 | |
| 533 | func newBridgeResolveCommand(deps commandDeps) *cobra.Command { |
| 534 | return &cobra.Command{ |
| 535 | Use: "resolve <id> <name>", |
| 536 | Short: "Resolve a bridge target name without sending", |
| 537 | Args: exactTwoNonBlankArgs(), |
| 538 | RunE: func(cmd *cobra.Command, args []string) error { |
| 539 | client, err := clientFromDeps(deps) |
| 540 | if err != nil { |
| 541 | return err |
| 542 | } |
| 543 | result, err := client.ResolveBridgeTarget(cmd.Context(), args[0], args[1]) |
| 544 | if err != nil { |
| 545 | return err |
| 546 | } |
| 547 | return writeCommandOutput(cmd, bridgeResolveTargetBundle(result)) |
| 548 | }, |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | func newBridgeSecretBindingsCommand(deps commandDeps) *cobra.Command { |
| 553 | cmd := &cobra.Command{ |
no test coverage detected