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

Function builder

src/commands/invites/schema/delete.ts:19–37  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

17const describe = 'delete a Schema App invitation'
18
19const 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
39const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
40 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected