MCPcopy Create free account
hub / github.com/Effect-TS/effect / choice

Function choice

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

Source from the content-addressed store, hash-verified

192
193/** @internal */
194export const choice = <A>(
195 choices: ReadonlyArray<[string, A]>,
196 config?: Args.Args.BaseArgsConfig
197): Args.Args<A> => makeSingle(Option.fromNullable(config?.name), InternalPrimitive.choice(choices))
198
199/** @internal */
200export 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