MCPcopy Index your code
hub / github.com/Effect-TS/effect / choice

Function choice

packages/cli/src/internal/args.ts:193–196  ·  view source on GitHub ↗
(
  choices: ReadonlyArray<[string, A]>,
  config?: Args.Args.BaseArgsConfig
)

Source from the content-addressed store, hash-verified

191
192/** @internal */
193export const choice = <A>(
194 choices: ReadonlyArray<[string, A]>,
195 config?: Args.Args.BaseArgsConfig
196): Args.Args<A> => makeSingle(Option.fromNullable(config?.name), InternalPrimitive.choice(choices))
197
198/** @internal */
199export const date = (config?: Args.Args.BaseArgsConfig): Args.Args<globalThis.Date> =>

Callers

nothing calls this directly

Calls 1

makeSingleFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…