(argv: ArgumentsCamelCase<CommandArgs>)
| 30 | .epilog(buildEpilog({ command, apiDocs: 'deleteCapability' })) |
| 31 | |
| 32 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 33 | const command = await apiOrganizationCommand(argv) |
| 34 | |
| 35 | const id = await chooseCapability(command, argv.id, argv.capabilityVersion) |
| 36 | await command.client.capabilities.delete(id.id, id.version) |
| 37 | console.log(`capability ${id.id} (version ${id.version}) deleted`) |
| 38 | } |
| 39 | |
| 40 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 41 | export default cmd |
nothing calls this directly
no test coverage detected