(yargs: Argv)
| 27 | const describe = 'list invitations for a schema app or display details for an invitation' |
| 28 | |
| 29 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 30 | outputItemOrListBuilder(apiCommandBuilder(yargs)) |
| 31 | .positional('id-or-index', { describe: 'the invitation id or number in list', type: 'string' }) |
| 32 | .option('schema-app', { |
| 33 | describe: 'Schema App id', |
| 34 | type: 'string', |
| 35 | }) |
| 36 | .option('verbose', |
| 37 | { alias: 'v', describe: 'include location name in output', type: 'boolean', default: false }) |
| 38 | .example([ |
| 39 | [ |
| 40 | '$0 invites:schema', |
| 41 | 'list invitations for all schema apps', |
| 42 | ], |
| 43 | [ |
| 44 | '$0 invites:schema --schema-app=viper_7db10232-3f97-4618-924b-807bf852c616', |
| 45 | 'list invitations for the specified schema app', |
| 46 | ], |
| 47 | [ |
| 48 | '$0 invites:schema --schema-app=viper_7db10232-3f97-4618-924b-807bf852c616 3', |
| 49 | 'display details about the third invitation listed in the previous example', |
| 50 | ], |
| 51 | [ |
| 52 | '$0 invites:schema 97e44afd-845f-4da1-a7b3-fd2625fc9367', |
| 53 | 'list details of specified invitation', |
| 54 | ], |
| 55 | ]) |
| 56 | .epilog(buildEpilog({ command, apiDocs: 'listSchemaAppInvitations' })) |
| 57 | |
| 58 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 59 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected