(yargs: Argv)
| 27 | const describe = 'get a device presentation' |
| 28 | |
| 29 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 30 | formatAndWriteItemBuilder(apiCommandBuilder(yargs)) |
| 31 | .positional('id-or-index', { describe: 'device id or number from list', type: 'string' }) |
| 32 | .example([ |
| 33 | ['$0 devices:presentation', 'choose a device from a list and display its presentation'], |
| 34 | [ |
| 35 | '$0 devices:presentation 3', |
| 36 | 'display the presentation for the third device listed when running "smartthings devices"', |
| 37 | ], |
| 38 | [ |
| 39 | '$0 devices:presentation a13a3fbb-2b97-4c73-978d-ae7c2fca3ea8', |
| 40 | 'display the presentation for the specified device', |
| 41 | ], |
| 42 | ]) |
| 43 | .epilog(buildEpilog({ command, apiDocs: ['getDevicePresentation'] })) |
| 44 | |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
nothing calls this directly
no test coverage detected