(argv: ArgumentsCamelCase<CommandArgs>)
| 28 | .epilog(buildEpilog({ command })) |
| 29 | |
| 30 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 31 | const command = await apiCommand(argv) |
| 32 | |
| 33 | const id = await chooseDeviceFn({ type: DeviceIntegrationType.VIRTUAL })(command, argv.id) |
| 34 | await command.client.devices.delete(id) |
| 35 | console.log(`Device ${id} deleted.`) |
| 36 | } |
| 37 | |
| 38 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 39 | export default cmd |
nothing calls this directly
no test coverage detected