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

Function splitForcedArgs

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

Source from the content-addressed store, hash-verified

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

Callers 1

parseUserDefinedArgsFunction · 0.85

Calls 1

spanMethod · 0.80

Tested by

no test coverage detected