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

Function builder

src/commands/edge/channels/delete.ts:23–33  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

21const describe = 'delete a channel'
22
23const builder = (yargs: Argv): Argv<CommandArgs> =>
24 apiOrganizationCommandBuilder(yargs)
25 .positional('id', { describe: 'channel id', type: 'string' })
26 .example([
27 ['$0 edge:channels:delete', 'choose the channel to delete from a list'],
28 [
29 '$0 edge:channels:delete 636169e4-8b9f-4438-a941-953b0d617231',
30 'delete the channel with the specified id',
31 ],
32 ])
33 .epilog(buildEpilog({ command, apiDocs: 'deleteChannel' }))
34
35
36const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected