(yargs: Argv)
| 17 | const describe = 'delete a Schema App invitation' |
| 18 | |
| 19 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 20 | apiCommandBuilder(yargs) |
| 21 | .positional('id', { describe: 'Schema App invitation id', type: 'string' }) |
| 22 | .option('schema-app', { describe: 'Schema App id', type: 'string' }) |
| 23 | .example([ |
| 24 | [ |
| 25 | '$0 invites:schema:delete', |
| 26 | 'choose the invitation to delete from a list', |
| 27 | ], |
| 28 | [ |
| 29 | '$0 invites:schema:delete --schema-app e077532e-3c0f-4f3b-a1d8-029115ee1602', |
| 30 | 'choose the invitation to delete from a list of invitations for the specified Schema App', |
| 31 | ], |
| 32 | [ |
| 33 | '$0 invites:schema:delete 5dfd6626-ab1d-42da-bb76-90def3153998', |
| 34 | 'delete the invitation with the specified id', |
| 35 | ], |
| 36 | ]) |
| 37 | .epilog(buildEpilog({ command })) |
| 38 | |
| 39 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 40 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected