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