(argv: ArgumentsCamelCase<CommandArgs>)
| 41 | })) |
| 42 | |
| 43 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 44 | const command = await apiOrganizationCommand(argv) |
| 45 | |
| 46 | const id = await chooseSchemaApp( |
| 47 | command, |
| 48 | argv.id, |
| 49 | { promptMessage: 'Select a schema app to regenerate its client id and secret.' }, |
| 50 | ) |
| 51 | |
| 52 | await outputItem( |
| 53 | command, |
| 54 | { tableFieldDefinitions: ['endpointAppId', 'stClientId', 'stClientSecret'] }, |
| 55 | () => command.client.schema.regenerateOauth(id), |
| 56 | ) |
| 57 | } |
| 58 | |
| 59 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 60 | export default cmd |
nothing calls this directly
no test coverage detected