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

Function newBridgeResolveCommand

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

Source from the content-addressed store, hash-verified

531}
532
533func 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
552func newBridgeSecretBindingsCommand(deps commandDeps) *cobra.Command {
553 cmd := &cobra.Command{

Callers 1

newBridgeCommandFunction · 0.85

Calls 5

exactTwoNonBlankArgsFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
ResolveBridgeTargetMethod · 0.65

Tested by

no test coverage detected