(argv: ArgumentsCamelCase<CommandArgs>)
| 41 | .epilog(buildEpilog({ command, apiDocs: 'createMode' })) |
| 42 | |
| 43 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 44 | const command = await apiCommand(argv) |
| 45 | |
| 46 | const locationId = await chooseLocation(command, argv.location) |
| 47 | const config: CommonOutputProducer<Mode> = { tableFieldDefinitions } |
| 48 | await inputAndOutputItem<ModeRequest, Mode>( |
| 49 | command, |
| 50 | config, |
| 51 | (_, mode) => command.client.modes.create(mode, locationId), |
| 52 | ) |
| 53 | } |
| 54 | |
| 55 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 56 | export default cmd |
nothing calls this directly
no test coverage detected