(argv: ArgumentsCamelCase<CommandArgs>)
| 44 | .epilog(buildEpilog({ command, apiDocs: ['createRule'] })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiCommand(argv) |
| 48 | |
| 49 | const locationId = await chooseLocation(command, argv.location) |
| 50 | |
| 51 | await inputAndOutputItem<RuleRequest, Rule>( |
| 52 | command, |
| 53 | { tableFieldDefinitions }, |
| 54 | (_, rule) => command.client.rules.create(rule, locationId), |
| 55 | ) |
| 56 | } |
| 57 | |
| 58 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 59 | export default cmd |
nothing calls this directly
no test coverage detected