(id: string)
| 75 | const list = async (): Promise<DeviceDriverInfo[]> => matchingDevices |
| 76 | |
| 77 | const get = async (id: string): Promise<DeviceDriverInfo> => { |
| 78 | const match = matchingDevices.find(device => device.deviceId === id) |
| 79 | if (match) { |
| 80 | return match |
| 81 | } |
| 82 | throw Error(`Could not find device with id ${id}`) |
| 83 | } |
| 84 | |
| 85 | await outputItemOrList(command, config, argv.idOrIndex, list, get) |
| 86 | } |
nothing calls this directly
no outgoing calls
no test coverage detected