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

Function choiceWithValue

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

Source from the content-addressed store, hash-verified

692 * @since 4.0.0
693 */
694export const choiceWithValue = <const Choices extends ReadonlyArray<readonly [string, any]>>(
695 name: string,
696 choices: Choices
697): Argument<Choices[number][1]> => Param.choiceWithValue(Param.argumentKind, name, choices)
698
699// -------------------------------------------------------------------------------------
700// metadata

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected