(deps commandDeps)
| 443 | } |
| 444 | |
| 445 | func newBridgeDisableCommand(deps commandDeps) *cobra.Command { |
| 446 | return &cobra.Command{ |
| 447 | Use: "disable <id>", |
| 448 | Short: "Disable a bridge instance", |
| 449 | Args: exactOneNonBlankArg(), |
| 450 | RunE: func(cmd *cobra.Command, args []string) error { |
| 451 | client, err := clientFromDeps(deps) |
| 452 | if err != nil { |
| 453 | return err |
| 454 | } |
| 455 | |
| 456 | item, err := client.DisableBridge(cmd.Context(), args[0]) |
| 457 | if err != nil { |
| 458 | return err |
| 459 | } |
| 460 | return writeCommandOutput(cmd, bridgeBundle(item)) |
| 461 | }, |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | func newBridgeRestartCommand(deps commandDeps) *cobra.Command { |
| 466 | return &cobra.Command{ |
no test coverage detected