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

Function choice

packages/effect/src/unstable/cli/Argument.ts:169–172  ·  view source on GitHub ↗
(
  name: string,
  choices: Choices
)

Source from the content-addressed store, hash-verified

167 * @since 4.0.0
168 */
169export const choice = <const Choices extends ReadonlyArray<string>>(
170 name: string,
171 choices: Choices
172): Argument<Choices[number]> => Param.choice(Param.argumentKind, name, choices)
173
174/**
175 * Creates a positional path argument.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected