(argv: ArgumentsCamelCase<CommandArgs>)
| 45 | .epilog(buildEpilog({ command, apiDocs: 'createRoom' })) |
| 46 | |
| 47 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 48 | const command = await apiCommand(argv) |
| 49 | |
| 50 | const locationId = await chooseLocation(command, argv.location) |
| 51 | const config: InputAndOutputItemConfig<Room> = { tableFieldDefinitions } |
| 52 | await inputAndOutputItem<RoomRequest, Room>( |
| 53 | command, |
| 54 | config, |
| 55 | (_, room) => command.client.rooms.create(room, locationId), |
| 56 | ) |
| 57 | } |
| 58 | |
| 59 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 60 | export default cmd |
nothing calls this directly
no test coverage detected