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

Function builder

src/commands/edge/drivers/prune.ts:24–34  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

22const describe = 'uninstall unused edge drivers from a hub'
23
24const builder = (yargs: Argv): Argv<CommandArgs> =>
25 apiCommandBuilder(yargs)
26 .option('hub', { alias: 'H', describe: 'hub id', type: 'string' })
27 .example([
28 ['$0 edge:drivers:prune', 'prompt for a hub and prune its drivers'],
29 [
30 '$0 edge:drivers:prune --hub b0cd47c6-2bbd-45f7-9726-6dcd374b8eb3' +
31 'prune drivers on the specified hub',
32 ],
33 ])
34 .epilog(buildEpilog({ command, apiDocs: 'uninstallDriver' }))
35
36const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
37 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected