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

Function builder

src/commands/deviceprofiles/publish.ts:31–44  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

29const describe = 'publish a device profile (published profiles cannot be modified)'
30
31export const builder = (yargs: Argv): Argv<CommandArgs> =>
32 formatAndWriteItemBuilder(apiOrganizationCommandBuilder(yargs))
33 .positional('id', { describe: 'device profile id', type: 'string' })
34 .example([
35 [
36 '$0 deviceprofiles:publish',
37 'prompt for a device profile and publish it',
38 ],
39 [
40 '$0 deviceprofiles:publish aaddcbec-e8ce-4227-b9b2-f4f22f87f2ec',
41 'publish the specified device profile',
42 ],
43 ])
44 .epilog(buildEpilog({ command, apiDocs: ['getDeviceProfile', 'getDeviceConfiguration'] }))
45
46const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
47 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected