(yargs: Argv)
| 32 | const describe = 'create an invitation to a schema app' |
| 33 | |
| 34 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 35 | inputAndOutputItemBuilder(apiCommandBuilder(yargs)) |
| 36 | .option('schema-app', { describe: 'schema app link id', type: 'string' }) |
| 37 | .example([ |
| 38 | ['$0 invites:schema:create', 'create an invitation from prompted input'], |
| 39 | [ |
| 40 | '$0 invites:schema:create --schema-app d2e44c34-3cb1-42be-b5ba-8fbaf2922c19', |
| 41 | 'create an invitation for the specified Schema App from prompted input', |
| 42 | ], |
| 43 | [ |
| 44 | '$0 invites:schema:create -i invitation.json', |
| 45 | 'create an invitation as defined in invitation.json, prompting the user for a schema-app', |
| 46 | ], |
| 47 | [ |
| 48 | '$0 invites:schema:create -i invitation.json --schema-app d2e44c34-3cb1-42be-b5ba-8fbaf2922c19', |
| 49 | 'create an invitation as defined in invitation.json with the specified schema-app', |
| 50 | ], |
| 51 | ]) |
| 52 | .epilog(buildEpilog({ command, apiDocs: 'createSchemaAppInvite' })) |
| 53 | |
| 54 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 55 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected