(deps commandDeps)
| 423 | } |
| 424 | |
| 425 | func newBridgeEnableCommand(deps commandDeps) *cobra.Command { |
| 426 | return &cobra.Command{ |
| 427 | Use: "enable <id>", |
| 428 | Short: "Enable a bridge instance", |
| 429 | Args: exactOneNonBlankArg(), |
| 430 | RunE: func(cmd *cobra.Command, args []string) error { |
| 431 | client, err := clientFromDeps(deps) |
| 432 | if err != nil { |
| 433 | return err |
| 434 | } |
| 435 | |
| 436 | item, err := client.EnableBridge(cmd.Context(), args[0]) |
| 437 | if err != nil { |
| 438 | return err |
| 439 | } |
| 440 | return writeCommandOutput(cmd, bridgeBundle(item)) |
| 441 | }, |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | func newBridgeDisableCommand(deps commandDeps) *cobra.Command { |
| 446 | return &cobra.Command{ |
no test coverage detected