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

Function createParseState

packages/effect/src/cli/internal/parser.ts:787–792  ·  view source on GitHub ↗
(registry: FlagRegistry)

Source from the content-addressed store, hash-verified

785/* ========================================================================== */
786
787const createParseState = (registry: FlagRegistry): ParseState => ({
788 flags: createFlagAccumulator(registry.params),
789 arguments: [],
790 errors: [],
791 mode: { _tag: "AwaitingFirstValue" }
792})
793
794const toLeafResult = (state: ParseState): LeafResult => ({
795 _tag: "Leaf",

Callers 1

scanCommandLevelFunction · 0.85

Calls 1

createFlagAccumulatorFunction · 0.85

Tested by

no test coverage detected