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

Function builder

src/commands/schema/delete.ts:22–32  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

20const describe = 'unlink a Schema App from smartthings'
21
22const builder = (yargs: Argv): Argv<CommandArgs> =>
23 apiOrganizationCommandBuilder(yargs)
24 .positional('id', { describe: 'Schema App link id', type: 'string' })
25 .example([
26 ['$0 schema:delete', 'choose the Schema App to unlink from a list'],
27 [
28 '$0 schema:delete 43daec4d-f2c6-4bc3-9df7-50ed1012c137',
29 'unlink the Schema App with the specified id',
30 ],
31 ])
32 .epilog(buildEpilog({ command, apiDocs: 'deleteAppsByEndpointAppId' }))
33
34const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
35 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected