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

Function createEmptyFlagMap

packages/effect/src/unstable/cli/internal/parser.ts:286–287  ·  view source on GitHub ↗
(params: ReadonlyArray<FlagParam>)

Source from the content-addressed store, hash-verified

284 * @internal
285 */
286export const createEmptyFlagMap = (params: ReadonlyArray<FlagParam>): FlagMap =>
287 Object.fromEntries(params.map((p) => [p.name, []]))
288
289/**
290 * Creates a mutable accumulator for collecting flag values.

Callers 3

createFlagAccumulatorFunction · 0.85
consumeKnownFlagsFunction · 0.85
consumeGlobalFlagsFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected