MCPcopy Index your code
hub / github.com/anomalyco/opencode / storeAnswers

Function storeAnswers

packages/opencode/src/cli/cmd/run/question.shared.ts:139–146  ·  view source on GitHub ↗
(state: QuestionBodyState, tab: number, list: string[])

Source from the content-addressed store, hash-verified

137}
138
139function storeAnswers(state: QuestionBodyState, tab: number, list: string[]): QuestionBodyState {
140 const answers = [...state.answers]
141 answers[tab] = list
142 return {
143 ...state,
144 answers,
145 }
146}
147
148export function questionStoreCustom(state: QuestionBodyState, tab: number, text: string): QuestionBodyState {
149 const custom = [...state.custom]

Callers 2

questionToggleFunction · 0.85
questionSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected