(argv: ArgumentsCamelCase<CommandArgs>)
| 46 | .epilog(buildEpilog({ command })) |
| 47 | |
| 48 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 49 | const command = await apiCommand(argv) |
| 50 | |
| 51 | const config: OutputItemOrListConfig<OrganizationResponse> = { |
| 52 | tableFieldDefinitions, |
| 53 | primaryKeyName: 'organizationId', |
| 54 | sortKeyName: 'name', |
| 55 | listTableFieldDefinitions: ['name', 'label', 'organizationId', 'isDefaultUserOrg'], |
| 56 | } |
| 57 | |
| 58 | await outputItemOrList(command, config, argv.idOrIndex, |
| 59 | () => command.client.organizations.list(), |
| 60 | id => command.client.organizations.get(id), |
| 61 | ) |
| 62 | } |
| 63 | |
| 64 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 65 | export default cmd |
nothing calls this directly
no test coverage detected