(argv: ArgumentsCamelCase<CommandArgs>)
| 61 | .epilog(buildEpilog({ command, apiDocs: 'getCapabilityPresentation' })) |
| 62 | |
| 63 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 64 | const command = await apiOrganizationCommand(argv) |
| 65 | |
| 66 | const capabilityId = await chooseCapability( |
| 67 | command, |
| 68 | argv.idOrIndex, |
| 69 | argv.capabilityVersion, |
| 70 | { namespace: argv.namespace, allowIndex: true }, |
| 71 | ) |
| 72 | const presentation = |
| 73 | await command.client.capabilities.getPresentation(capabilityId.id, capabilityId.version) |
| 74 | await formatAndWriteItem( |
| 75 | command, |
| 76 | { buildTableOutput: data => buildTableOutput(command.tableGenerator, data) }, |
| 77 | presentation, |
| 78 | ) |
| 79 | } |
| 80 | |
| 81 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 82 | export default cmd |
nothing calls this directly
no test coverage detected