(argv: ArgumentsCamelCase<CommandArgs>)
| 40 | .epilog(buildEpilog({ command, apiDocs: 'updateLocation' })) |
| 41 | |
| 42 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 43 | const command = await apiCommand(argv) |
| 44 | |
| 45 | const id = await chooseLocation(command, argv.id) |
| 46 | await inputAndOutputItem<LocationUpdate, Location>(command, { tableFieldDefinitions }, |
| 47 | (_, location) => command.client.locations.update(id, location)) |
| 48 | } |
| 49 | |
| 50 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 51 | export default cmd |
nothing calls this directly
no test coverage detected