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

Function outputItem

src/lib/command/output-item.ts:13–19  ·  view source on GitHub ↗
(command: SmartThingsCommand<OutputItemFlags>, config: OutputItemConfig<O>,
		getData: GetDataFunction<O>)

Source from the content-addressed store, hash-verified

11export const outputItemBuilder = buildOutputFormatterBuilder
12export type OutputItemConfig<O extends object> = FormatAndWriteItemConfig<O>
13export async function outputItem<O extends object>(command: SmartThingsCommand<OutputItemFlags>, config: OutputItemConfig<O>,
14 getData: GetDataFunction<O>): Promise<O> {
15 const data = await getData()
16
17 await formatAndWriteItem(command, config, data)
18 return data
19}

Callers 8

handlerFunction · 0.85
handlerFunction · 0.85
handlerFunction · 0.85
handlerFunction · 0.85
handlerFunction · 0.85
uploadAndPostProcessFunction · 0.85
handlerFunction · 0.85
handlerFunction · 0.85

Calls 1

formatAndWriteItemFunction · 0.85

Tested by

no test coverage detected