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

Function listItems

src/lib/command/util/virtualdevices.ts:137–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 const listItems = async (): Promise<CapabilityReference[]> => Promise.resolve(component.capabilities)
138 const preselectedId = component.capabilities.length === 1 ? component.capabilities[0].id : undefined
139 const capabilityId = await selectFromList(command, config, { preselectedId, listItems })
140 const capability = component.capabilities.find(cap => cap.id === capabilityId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected