( cmd *cobra.Command, deps commandDeps, id string, flags bridgeUpdateFlags, )
| 309 | } |
| 310 | |
| 311 | func 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 | |
| 332 | func buildBridgeUpdateRequest( |
| 333 | cmd *cobra.Command, |
no test coverage detected