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