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

Function updateFromUserInput

src/lib/item-input/misc.ts:54–56  ·  view source on GitHub ↗
(original: string, context?: unknown[])

Source from the content-addressed store, hash-verified

52 })
53 const summarizeForEdit = (value: string): string => value
54 const updateFromUserInput = (original: string, context?: unknown[]): Promise<string | undefined> =>
55 optionalStringInput(`${name} (optional)`,
56 { ...options, default: original, validate: validateWithContextFn(options?.validate, context) })
57
58 return { name, buildFromUserInput, summarizeForEdit, updateFromUserInput }
59}

Callers 4

buildFromUserInputFunction · 0.70
getInputFromUserFunction · 0.50
getInputFromUserFunction · 0.50

Calls 7

optionalStringInputFunction · 0.85
validateWithContextFnFunction · 0.85
stringInputFunction · 0.85
optionalIntegerInputFunction · 0.85
integerInputFunction · 0.85
booleanInputFunction · 0.85
summarizeForEditFunction · 0.70

Tested by

no test coverage detected