(yargs: Argv)
| 19 | const describe = 'query device config by presentation id' |
| 20 | |
| 21 | const 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 | |
| 40 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 41 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected