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

Function patchArgvForWrapCommands

packages/cli/src/argv-patch.ts:10–16  ·  view source on GitHub ↗
(argv: Array<string>)

Source from the content-addressed store, hash-verified

8const wrapCommands = new Set(["index-multi", "packagejson", "packagejson-packages"])
9
10export const patchArgvForWrapCommands = (argv: Array<string>): void => {
11 const subIdx = argv.findIndex((a, i) => i >= 2 && wrapCommands.has(a))
12 if (subIdx === -1 || subIdx + 1 >= argv.length) return
13
14 const wrapArgs = argv.splice(subIdx + 1)
15 argv.push(wrapArgs.join(" "))
16}

Callers 2

argv-patch.test.tsFile · 0.85
index.tsFile · 0.85

Calls 3

pushMethod · 0.80
joinMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…