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

Function updateFromUserInput

src/lib/item-input/array.ts:173–181  ·  view source on GitHub ↗
(original: T[], context: unknown[] = [])

Source from the content-addressed store, hash-verified

171
172 const updateFromUserInput = async (original: T[], context: unknown[] = []): Promise<T[] | CancelAction> => {
173 const updated = [...original]
174
175 if (await editList(updated, context) === finishAction) {
176 return updated
177 }
178
179 return cancelAction
180 }
181
182 return { name, buildFromUserInput, summarizeForEdit, updateFromUserInput }
183}
184

Callers

nothing calls this directly

Calls 2

editListFunction · 0.85
editValuesFunction · 0.85

Tested by

no test coverage detected