(argv: ArgumentsCamelCase<CommandArgs>)
| 43 | .epilog(buildEpilog({ command, apiDocs: 'updateRoom' })) |
| 44 | |
| 45 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 46 | const command = await apiCommand(argv) |
| 47 | |
| 48 | const [roomId, locationId] = await chooseRoom(command, argv.id, { locationId: argv.location }) |
| 49 | const config: CommonOutputProducer<Room> = { tableFieldDefinitions } |
| 50 | await inputAndOutputItem<RoomRequest, Room>( |
| 51 | command, |
| 52 | config, |
| 53 | (_, data) => command.client.rooms.update(roomId, data, locationId), |
| 54 | ) |
| 55 | } |
| 56 | |
| 57 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 58 | export default cmd |
nothing calls this directly
no test coverage detected