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

Function builder

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

Source from the content-addressed store, hash-verified

31 'type', 'termsOfServiceUrl', 'createdDate', 'lastModifiedDate']
32
33const builder = (yargs: Argv): Argv<CommandArgs> =>
34 inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs))
35 .example([
36 [
37 '$0 edge:channels:create',
38 'create a channel from prompted input',
39 ],
40 [
41 '$0 edge:channels:create --input channel.json',
42 'create a channel as defined in channel.json',
43 ],
44 ])
45 .epilog(buildEpilog({ command, apiDocs: 'createChannel' }))
46
47const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
48 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 3

buildEpilogFunction · 0.85

Tested by

no test coverage detected