(yargs: Argv)
| 22 | const describe = 'regenerate the client id and secret of the Schema App link' |
| 23 | |
| 24 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 25 | outputItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 26 | .positional('id', { |
| 27 | describe: 'Schema App link id', |
| 28 | type: 'string', |
| 29 | }) |
| 30 | .example([ |
| 31 | ['$0 schema:regenerate', 'prompt for Schema App link and regenerate the client id and secret for it'], |
| 32 | [ |
| 33 | '$0 schema:regenerate 392bcb11-e251-44f3-b58b-17f93015f3aa', |
| 34 | 'regenerate the client id and secret for for the specified Schema App link', |
| 35 | ], |
| 36 | ]) |
| 37 | .epilog(buildEpilog({ |
| 38 | command, |
| 39 | apiDocs: ['generateStOauthCredentials'], |
| 40 | formattedNotes: 'The previous values will be invalidated, which may affect existing installations.', |
| 41 | })) |
| 42 | |
| 43 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 44 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected