(argv: ArgumentsCamelCase<CommandArgs>)
| 42 | .epilog(buildEpilog({ command, apiDocs: 'updateCapability' })) |
| 43 | |
| 44 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 45 | const command = await apiOrganizationCommand(argv) |
| 46 | |
| 47 | const id = await chooseCapability(command, argv.id, argv.capabilityVersion) |
| 48 | await inputAndOutputItem<CapabilityUpdate, Capability>( |
| 49 | command, |
| 50 | { buildTableOutput: data => buildTableOutput(command.tableGenerator, data) }, |
| 51 | (_, capability) => command.client.capabilities.update(id.id, id.version, capability), |
| 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