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

Function builder

src/commands/capabilities/create.ts:53–65  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

51const describe = 'create a capability'
52
53const builder = (yargs: Argv): Argv<CommandArgs> =>
54 inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs))
55 .option('namespace', {
56 alias: 'n',
57 description: 'the namespace to create the capability under',
58 type: 'string',
59 })
60 .example([
61 ['$0 capabilities:create', 'create a capability from prompted input'],
62 ['$0 capabilities:create --dry-run', 'build JSON for a capability from prompted input'],
63 ['$0 capabilities:create -i my-capability.yaml', 'create a capability defined in "my-capability.yaml'],
64 ])
65 .epilog(buildEpilog({ command, apiDocs: 'createCapability' }))
66
67const logger = log4js.getLogger('cli')
68

Callers

nothing calls this directly

Calls 3

buildEpilogFunction · 0.85

Tested by

no test coverage detected