(argv: ArgumentsCamelCase<CommandArgs>)
| 30 | .epilog(buildEpilog({ command, apiDocs: 'deleteLocation' })) |
| 31 | |
| 32 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 33 | const command = await apiCommand(argv) |
| 34 | |
| 35 | const id = await chooseLocation(command, argv.id) |
| 36 | await command.client.locations.delete(id) |
| 37 | console.log(`Location ${id} deleted.`) |
| 38 | } |
| 39 | |
| 40 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 41 | export default cmd |
nothing calls this directly
no test coverage detected