(argv: ArgumentsCamelCase<CommandArgs>)
| 36 | .epilog(buildEpilog({ command, apiDocs: 'deleteRoom' })) |
| 37 | |
| 38 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 39 | const command = await apiCommand(argv) |
| 40 | |
| 41 | const [roomId, locationId] = await chooseRoom(command, argv.id, { locationId: argv.location }) |
| 42 | await command.client.rooms.delete(roomId, locationId) |
| 43 | console.log(`Room ${roomId} deleted.`) |
| 44 | } |
| 45 | |
| 46 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 47 | export default cmd |
nothing calls this directly
no test coverage detected