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

Function createParseState

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

Source from the content-addressed store, hash-verified

750/* ========================================================================== */
751
752const createParseState = (registry: FlagRegistry): ParseState => ({
753 flags: createFlagAccumulator(registry.params),
754 arguments: [],
755 errors: [],
756 mode: { _tag: "AwaitingFirstValue" }
757})
758
759const toLeafResult = (state: ParseState): LeafResult => ({
760 _tag: "Leaf",

Callers 1

scanCommandLevelFunction · 0.85

Calls 1

createFlagAccumulatorFunction · 0.85

Tested by

no test coverage detected