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

Function questionSingle

packages/opencode/src/cli/cmd/run/question.shared.ts:54–56  ·  view source on GitHub ↗
(request: QuestionRequest)

Source from the content-addressed store, hash-verified

52}
53
54export function questionSingle(request: QuestionRequest): boolean {
55 return request.questions.length === 1 && request.questions[0]?.multiple !== true
56}
57
58export function questionTabs(request: QuestionRequest): number {
59 return questionSingle(request) ? 1 : request.questions.length + 1

Callers 5

RunQuestionBodyFunction · 0.90
questionTabsFunction · 0.85
questionConfirmFunction · 0.85
questionPickFunction · 0.85
questionHintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected