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

Function builder

src/commands/deviceprofiles/update.ts:37–50  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

35const describe = 'update a device profile'
36
37const builder = (yargs: Argv): Argv<CommandArgs> =>
38 inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs))
39 .positional('id-or-index', { describe: 'device profile id or number from list', type: 'string' })
40 .example([
41 [
42 '$0 deviceprofiles:update --input my-profile.yaml',
43 'prompt for a device profile and update it using the data in my-profile.yaml',
44 ],
45 [
46 '$0 deviceprofiles:update --input my-profile.json 204cf401-bb4b-4dfc-91ec-729f5d8075ef',
47 'update the specified device profile using the data in my-profile.json',
48 ],
49 ])
50 .epilog(buildEpilog({ command, apiDocs: 'updateDeviceProfile' }))
51
52const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
53 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 3

buildEpilogFunction · 0.85

Tested by

no test coverage detected