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

Function builder

src/commands/locations/create.ts:25–33  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

23const describe = 'create a location for a user'
24
25const builder = (yargs: Argv): Argv<CommandArgs> =>
26 inputAndOutputItemBuilder(apiCommandBuilder(yargs))
27 .example([
28 [
29 '$0 locations:create -i my-location.yaml',
30 'create a location defined in "my-location.yaml"',
31 ],
32 ])
33 .epilog(buildEpilog({ command, apiDocs: 'createLocation' }))
34
35const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
36 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 3

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected