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

Function choiceWithValue

packages/effect/src/unstable/cli/Flag.ts:155–158  ·  view source on GitHub ↗
(
  name: string,
  choices: Choice
)

Source from the content-addressed store, hash-verified

153 * @since 4.0.0
154 */
155export const choiceWithValue = <const Choice extends ReadonlyArray<readonly [string, any]>>(
156 name: string,
157 choices: Choice
158): Flag<Choice[number][1]> => Param.choiceWithValue(Param.flagKind, name, choices)
159
160/**
161 * Creates a flag that accepts one of the provided string choices and returns

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected