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

Function builder

src/commands/edge/drivers/default.ts:28–43  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

26const describe = 'list default drivers available to all users'
27
28const builder = (yargs: Argv): Argv<CommandArgs> =>
29 outputItemOrListBuilder(apiCommandBuilder(yargs))
30 .positional('id-or-index', { describe: 'driver id or number in list', type: 'string' })
31 .example([
32 ['$0 edge:drivers:default', 'list default drivers'],
33 [
34 '$0 edge:drivers:default 12',
35 'display details for the twelfth driver in the list retrieved by running' +
36 ' "smartthings edge:drivers:default"',
37 ],
38 [
39 '$0 edge:drivers:default 5dfd6626-ab1d-42da-bb76-90def3153998',
40 'display details for a default driver by id',
41 ],
42 ])
43 .epilog(buildEpilog({ command, apiDocs: 'getDefaultDrivers' }))
44
45const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
46 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected