MCPcopy
hub / github.com/Effect-TS/effect / splitForcedArgs

Function splitForcedArgs

packages/cli/src/internal/commandDescriptor.ts:824–829  ·  view source on GitHub ↗
(
  args: ReadonlyArray<string>
)

Source from the content-addressed store, hash-verified

822}
823
824const splitForcedArgs = (
825 args: ReadonlyArray<string>
826): [Array<string>, Array<string>] => {
827 const [remainingArgs, forcedArgs] = Arr.span(args, (str) => str !== "--")
828 return [remainingArgs, Arr.drop(forcedArgs, 1)]
829}
830
831const withDescriptionInternal = (
832 self: Instruction,

Callers 1

parseUserDefinedArgsFunction · 0.85

Calls 1

spanMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…