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

Function createApp

src/commands/apps/create.ts:61–66  ·  view source on GitHub ↗
(_: void, data: AppCreateRequest)

Source from the content-addressed store, hash-verified

59 const command = await apiCommand(argv)
60
61 const createApp = async (_: void, data: AppCreateRequest): Promise<AppCreationResponse> => {
62 if (argv.authorize) {
63 await authorizeApp(data, argv.principal, argv.statement)
64 }
65 return command.client.apps.create(data)
66 }
67
68 const buildTableOutput = (data: AppCreationResponse): string => {
69 const basicInfo = command.tableGenerator.buildTableFromItem(data.app, tableFieldDefinitions)

Callers 1

create.test.tsFile · 0.50

Calls 1

authorizeAppFunction · 0.85

Tested by

no test coverage detected