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

Function runBridgeUpdateCommand

internal/cli/bridge.go:311–330  ·  view source on GitHub ↗
(
	cmd *cobra.Command,
	deps commandDeps,
	id string,
	flags bridgeUpdateFlags,
)

Source from the content-addressed store, hash-verified

309}
310
311func runBridgeUpdateCommand(
312 cmd *cobra.Command,
313 deps commandDeps,
314 id string,
315 flags bridgeUpdateFlags,
316) error {
317 client, err := clientFromDeps(deps)
318 if err != nil {
319 return err
320 }
321 req, err := buildBridgeUpdateRequest(cmd, client, id, flags)
322 if err != nil {
323 return err
324 }
325 item, err := client.UpdateBridge(cmd.Context(), id, req)
326 if err != nil {
327 return err
328 }
329 return writeCommandOutput(cmd, bridgeBundle(item))
330}
331
332func buildBridgeUpdateRequest(
333 cmd *cobra.Command,

Callers 1

newBridgeUpdateCommandFunction · 0.85

Calls 5

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bridgeBundleFunction · 0.85
buildBridgeUpdateRequestFunction · 0.70
UpdateBridgeMethod · 0.65

Tested by

no test coverage detected