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

Function makeCursor

packages/effect/src/unstable/cli/internal/parser.ts:215–222  ·  view source on GitHub ↗
(tokens: ReadonlyArray<Token>)

Source from the content-addressed store, hash-verified

213}
214
215const makeCursor = (tokens: ReadonlyArray<Token>): TokenCursor => {
216 let i = 0
217 return {
218 peek: () => tokens[i],
219 take: () => tokens[i++],
220 rest: () => tokens.slice(i)
221 }
222}
223
224/* ========================================================================== */
225/* Flag Registry */

Callers 4

consumeKnownFlagsFunction · 0.85
consumeLevelFunction · 0.85
scanCommandLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected