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

Function builder

src/commands/capabilities/update.ts:30–42  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

28const describe = 'update a capability'
29
30const builder = (yargs: Argv): Argv<CommandArgs> =>
31 inputAndOutputItemBuilder(capabilityIdBuilder(apiOrganizationCommandBuilder(yargs)))
32 .example([
33 [
34 '$0 capabilities:update -i my-capability.json',
35 'prompt for a capability and update it using the data in "my-capability.json"',
36 ],
37 [
38 '$0 capabilities:update cathappy12345.myCapability --input my-capability.json',
39 'update the capability with the given id using the data in "my-capability.json"',
40 ],
41 ])
42 .epilog(buildEpilog({ command, apiDocs: 'updateCapability' }))
43
44const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
45 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 4

capabilityIdBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected