(argv: ArgumentsCamelCase<CommandArgs>)
| 42 | .epilog(buildEpilog({ command })) |
| 43 | |
| 44 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 45 | const command = await apiCommand(argv) |
| 46 | |
| 47 | const deviceId = await chooseDevice(command, argv.idOrIndex, { allowIndex: true }) |
| 48 | const health = await command.client.devices.getHealth(deviceId) |
| 49 | await formatAndWriteItem(command, { tableFieldDefinitions: ['deviceId', 'state', 'lastUpdatedDate'] }, health) |
| 50 | } |
| 51 | |
| 52 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 53 | export default cmd |
nothing calls this directly
no test coverage detected