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

Function builder

src/commands/edge/channels/unassign.ts:24–44  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

22const describe = 'remove a driver from a channel'
23
24const builder = (yargs: Argv): Argv<CommandArgs> =>
25 apiOrganizationCommandBuilder(yargs)
26 .positional('driver-id', { describe: 'driver id', type: 'string' })
27 .option('channel', { alias: 'C', describe: 'channel to unassigned from', type: 'string' })
28 .example([
29 ['$0 edge:channels:unassign', 'prompt for a channel and driver'],
30 [
31 '$0 edge:channels:unassign 636169e4-8b9f-4438-a941-953b0d617231',
32 'prompt for a channel and remove the specified driver from it',
33 ],
34 [
35 '$0 edge:channels:unassign --channel 6ea857c6-23d4-4aae-aaf7-7a36daf42f92',
36 'prompt for a driver and remove it from the specified channel',
37 ],
38 [
39 '$0 edge:channels:unassign 636169e4-8b9f-4438-a941-953b0d617231' +
40 ' --channel 6ea857c6-23d4-4aae-aaf7-7a36daf42f92',
41 'remove the specified driver from the specified channel',
42 ],
43 ])
44 .epilog(buildEpilog({ command, apiDocs: 'deleteDriverChannel' }))
45
46
47const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected