(argv: ArgumentsCamelCase<CommandArgs>)
| 29 | .epilog(buildEpilog({ command, apiDocs: ['getDeviceStatus'] })) |
| 30 | |
| 31 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 32 | const command = await apiCommand(argv) |
| 33 | |
| 34 | const deviceId = await chooseDevice(command, argv.idOrIndex, { allowIndex: true }) |
| 35 | const presentation = await command.client.devices.getStatus(deviceId) |
| 36 | await formatAndWriteItem( |
| 37 | command, |
| 38 | { buildTableOutput: data => buildStatusTableOutput(command.tableGenerator, data) }, |
| 39 | presentation, |
| 40 | ) |
| 41 | } |
| 42 | |
| 43 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 44 | export default cmd |
nothing calls this directly
no test coverage detected