MCPcopy Index your code
hub / github.com/SmartThingsCommunity/smartthings-cli / builder

Function builder

src/commands/scenes/execute.ts:20–30  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

18const describe = 'execute a scene'
19
20const builder = (yargs: Argv): Argv<CommandArgs> =>
21 apiCommandBuilder(yargs)
22 .positional('id', { describe: 'scene id', type: 'string' })
23 .example([
24 ['$0 scenes:execute', 'prompt for a scene to execute and then execute it'],
25 [
26 '$0 scenes:execute 699c7308-8c72-4363-9571-880d0f5cc725',
27 'execute the scene with the specified id',
28 ],
29 ])
30 .epilog(buildEpilog({ command, apiDocs: 'executeScene' }))
31
32
33const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected