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

Function builder

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

Source from the content-addressed store, hash-verified

29const describe = 'update a channel'
30
31const builder = (yargs: Argv): Argv<CommandArgs> =>
32 inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs))
33 .positional('id', { describe: 'id of channel to update', type: 'string' })
34 .example([
35 [
36 '$0 edge:channels:update --input channel.yaml',
37 'prompt for a channel and update it using the data in channel.yaml',
38 ],
39 [
40 '$0 edge:channels:update 0068b912-50fb-439d-a14a-27cc90ca81dc --input channel.json',
41 'update the specified channel using the data in channel.json',
42 ],
43 ])
44 .epilog(buildEpilog({ command, apiDocs: 'updateChannel' }))
45
46const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
47 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 3

buildEpilogFunction · 0.85

Tested by

no test coverage detected