(argv: ArgumentsCamelCase<CommandArgs>)
| 44 | |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiCommand(argv) |
| 48 | |
| 49 | const deviceId = await chooseDevice(command, argv.idOrIndex, { allowIndex: true }) |
| 50 | const presentation = await command.client.devices.getPresentation(deviceId) |
| 51 | await formatAndWriteItem( |
| 52 | command, |
| 53 | { buildTableOutput: data => buildTableOutput(command.tableGenerator, data) }, |
| 54 | presentation, |
| 55 | ) |
| 56 | } |
| 57 | |
| 58 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 59 | export default cmd |
nothing calls this directly
no test coverage detected