MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / builder

Function builder

src/commands/invites/schema/create.ts:34–52  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

32const describe = 'create an invitation to a schema app'
33
34const 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
54const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
55 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 3

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected