(yargs: Argv)
| 36 | const describe = 'link Schema App to SmartThings' |
| 37 | |
| 38 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 39 | inputAndOutputItemBuilder(lambdaAuthBuilder(apiOrganizationCommandBuilder(yargs))) |
| 40 | .option( |
| 41 | 'authorize', |
| 42 | { |
| 43 | describe: "authorize connector's Lambda functions to be called by SmartThings", |
| 44 | type: 'boolean', |
| 45 | default: false, |
| 46 | }, |
| 47 | ) |
| 48 | .example([ |
| 49 | ['$0 schema:create', 'link Schema App to SmartThings from prompted input'], |
| 50 | [ |
| 51 | '$0 schema:create -i schema-app-details.yaml', |
| 52 | 'link Schema App to SmartThings with details defined in "schema-app-details.yaml"', |
| 53 | ], |
| 54 | ]) |
| 55 | .epilog(buildEpilog({ command, apiDocs: 'postApps' })) |
| 56 | |
| 57 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 58 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected