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

Function builder

src/commands/edge/drivers/uninstall.ts:22–33  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

20const describe = 'uninstall an edge driver from a hub'
21
22const builder = (yargs: Argv): Argv<CommandArgs> =>
23 apiCommandBuilder(yargs)
24 .positional('driver-id', { describe: 'id of driver to uninstall', type: 'string' })
25 .option('hub', { alias: 'H', describe: 'hub id', type: 'string' })
26 .example([
27 ['$0 edge:drivers:uninstall', 'prompt for a hub and driver and uninstall the driver from the hub'],
28 [
29 '$0 edge:drivers:uninstall e61b9758-dfd5-4256-8a68-e411e38572b6',
30 'uninstall the specified driver',
31 ],
32 ])
33 .epilog(buildEpilog({ command, apiDocs: 'uninstallDriver' }))
34
35const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
36 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected