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

Function text

packages/opencode/src/cli/effect/prompt.ts:25–26  ·  view source on GitHub ↗
(opts: Parameters<typeof prompts.text>[0])

Source from the content-addressed store, hash-verified

23 Effect.promise(() => prompts.autocomplete(opts)).pipe(Effect.map((result) => optional(result)))
24
25export const text = (opts: Parameters<typeof prompts.text>[0]) =>
26 Effect.promise(() => prompts.text(opts)).pipe(Effect.map((result) => optional(result)))
27
28export const password = (opts: Parameters<typeof prompts.password>[0]) =>
29 Effect.promise(() => prompts.password(opts)).pipe(Effect.map((result) => optional(result)))

Callers

nothing calls this directly

Calls 2

optionalFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected