MCPcopy Create free account
hub / github.com/effect-app/libs / runConfig

Function runConfig

repos/effect/packages/effect/src/unstable/cli/Param.ts:1317–1324  ·  view source on GitHub ↗
(error: CliError.MissingOption | CliError.MissingArgument, args: ParsedArgs)

Source from the content-addressed store, hash-verified

1315 * ```ts import.meta.vitest
1316 * import { Param } from "effect/unstable/cli"
1317 *
1318 * // Using the pipe operator to make an option optional
1319 * const port = Param.integer(Param.flagKind, "port").pipe(
1320 * Param.withDefault(8080)
1321 * )
1322 *
1323 * // Can also be used with other combinators
1324 * const verbose = Param.boolean(Param.flagKind, "verbose").pipe(
1325 * Param.withAlias("-v"),
1326 * Param.withDescription("Enable verbose output"),
1327 * Param.withDefault(false)

Callers 1

Param.tsFile · 0.85

Calls 5

toInvalidValueFunction · 0.85
pipeMethod · 0.65
optionMethod · 0.65
failMethod · 0.45
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…