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

Function ioFormat

src/lib/command/input-processor.ts:138–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136
137export const combinedInputProcessor = <T>(inputProcessor: InputProcessor<T>, ...moveInputProcessors: InputProcessor<T>[]): InputProcessor<T> => {
138 const inputProcessors: InputProcessor<T>[] = [inputProcessor, ...moveInputProcessors]
139 let selectedInputProcessor: InputProcessor<T> | undefined
140 let _ioFormat: IOFormat | undefined = undefined
141
142 const hasInput = async (): Promise<boolean> => {
143 for (const inputProcessor of inputProcessors) {
144 const hasInputResult = inputProcessor.hasInput()
145 const hasInput = typeof hasInputResult === 'boolean' ? hasInputResult : await hasInputResult
146 if (hasInput) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected