(deps commandDeps)
| 110 | } |
| 111 | |
| 112 | func newBridgeGetCommand(deps commandDeps) *cobra.Command { |
| 113 | return &cobra.Command{ |
| 114 | Use: bridgeGetIDValue, |
| 115 | Short: "Show one bridge instance", |
| 116 | Args: exactOneNonBlankArg(), |
| 117 | RunE: func(cmd *cobra.Command, args []string) error { |
| 118 | client, err := clientFromDeps(deps) |
| 119 | if err != nil { |
| 120 | return err |
| 121 | } |
| 122 | |
| 123 | item, err := client.GetBridge(cmd.Context(), args[0]) |
| 124 | if err != nil { |
| 125 | return err |
| 126 | } |
| 127 | return writeCommandOutput(cmd, bridgeBundle(item)) |
| 128 | }, |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func newBridgeCreateCommand(deps commandDeps) *cobra.Command { |
| 133 | var ( |
no test coverage detected