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

Function choice

packages/effect/src/unstable/cli/Flag.ts:178–181  ·  view source on GitHub ↗
(
  name: string,
  choices: Choices
)

Source from the content-addressed store, hash-verified

176 * @since 4.0.0
177 */
178export const choice = <const Choices extends ReadonlyArray<string>>(
179 name: string,
180 choices: Choices
181): Flag<Choices[number]> => Param.choice(Param.flagKind, name, choices)
182
183/**
184 * Creates a path flag that accepts file system path input with validation options.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected