(yargs: Argv)
| 27 | const describe = 'update a room' |
| 28 | |
| 29 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 30 | inputAndOutputItemBuilder(apiCommandBuilder(yargs)) |
| 31 | .positional('id', { describe: 'room id', type: 'string' }) |
| 32 | .option('location', { alias: 'l', describe: 'a specific location to query', type: 'string' }) |
| 33 | .example([ |
| 34 | [ |
| 35 | '$0 locations:rooms:update -i my-room.json', |
| 36 | 'prompt for a room and update it using the data in "my-room.json"', |
| 37 | ], |
| 38 | [ |
| 39 | '$0 locations:rooms:update 392bcb11-e251-44f3-b58b-17f93015f3aa -i my-room.json', |
| 40 | 'update the room with the given id using the data in "my-room.json"', |
| 41 | ], |
| 42 | ]) |
| 43 | .epilog(buildEpilog({ command, apiDocs: 'updateRoom' })) |
| 44 | |
| 45 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 46 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected