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

Function installedApps

src/commands/installedapps.ts:84–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 argv.verbose ? async app => withLocation(command.client, await app) : app => app
83
84 const installedApps = async (): Promise<(InstalledApp & WithNamedLocation)[]> => {
85 const listOptions: InstalledAppListOptions = {
86 locationId: argv.location,
87 }
88 const apps = await command.client.installedApps.list(listOptions)
89 if (argv.verbose) {
90 return await withLocations(command.client, apps)
91 }
92 return apps
93 }
94
95 await outputItemOrList(
96 command,

Callers

nothing calls this directly

Calls 1

withLocationsFunction · 0.85

Tested by

no test coverage detected