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

Function inputProcessor

src/lib/command/input-processor.ts:75–78  ·  view source on GitHub ↗
(hasInput: () => boolean | Promise<boolean>, read: () => Promise<T>,
		ioFormat: IOFormat = 'common')

Source from the content-addressed store, hash-verified

73
74/**
75 * Build an input processor given the necessary functions for doing so.
76 */
77export function inputProcessor<T>(hasInput: () => boolean | Promise<boolean>, read: () => Promise<T>,
78 ioFormat: IOFormat = 'common'): InputProcessor<T> {
79 return { ioFormat, hasInput, read }
80}
81

Callers 5

handlerFunction · 0.85
handlerFunction · 0.85
userInputProcessorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected