(argv: ArgumentsCamelCase<CommandArgs>)
| 44 | .epilog(buildEpilog({ command, apiDocs: ['updateDevice'] })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiCommand(argv) |
| 48 | |
| 49 | const id = await chooseDeviceFn({ type: DeviceIntegrationType.VIRTUAL })(command, argv.id) |
| 50 | await inputAndOutputItem<DeviceUpdate, Device>( |
| 51 | command, |
| 52 | { buildTableOutput: data => buildTableOutput(command.tableGenerator, data) }, |
| 53 | (_, data) => command.client.devices.update(id, data), |
| 54 | ) |
| 55 | } |
| 56 | |
| 57 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 58 | export default cmd |
nothing calls this directly
no test coverage detected