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

Function builder

src/commands/presentation/device-config.ts:21–38  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

19const describe = 'query device config by presentation id'
20
21const builder = (yargs: Argv): Argv<CommandArgs> =>
22 outputItemBuilder(apiCommandBuilder(yargs))
23 .positional('presentation-id', {
24 describe: 'system generated identifier that corresponds to a device presentation',
25 type: 'string',
26 required: true,
27 })
28 .positional('manufacturer-name', {
29 describe: 'manufacturer name, defaults to SmartThingsCommunity',
30 type: 'string',
31 })
32 .example([
33 [
34 '$0 presentation:device-config 392bcb11-e251-44f3-b58b-17f93015f3aa',
35 'get the device config for the given presentation id',
36 ],
37 ])
38 .epilog(buildEpilog({ command, apiDocs: 'getDeviceConfiguration' }))
39
40const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
41 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected