(argv: ArgumentsCamelCase<CommandArgs>)
| 47 | .epilog(buildEpilog({ command, apiDocs: 'updateMode' })) |
| 48 | |
| 49 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 50 | const command = await apiCommand(argv) |
| 51 | |
| 52 | const [modeId, locationId] = await chooseMode(command, argv.id, { locationId: argv.location }) |
| 53 | const config: CommonOutputProducer<Mode> = { tableFieldDefinitions } |
| 54 | await inputAndOutputItem<ModeRequest, Mode>( |
| 55 | command, |
| 56 | config, |
| 57 | (_, data) => command.client.modes.update(modeId, data, locationId), |
| 58 | ) |
| 59 | } |
| 60 | |
| 61 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 62 | export default cmd |
nothing calls this directly
no test coverage detected