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

Function extractFlagParams

packages/effect/src/unstable/cli/internal/parser.ts:558–562  ·  view source on GitHub ↗
(command: Command.Any)

Source from the content-addressed store, hash-verified

556}
557
558const extractFlagParams = (command: Command.Any): ReadonlyArray<FlagParam> => {
559 const commandImpl = toImpl(command)
560 const singles = commandImpl.config.flags.flatMap(Param.extractSingleParams)
561 return singles.filter(Param.isFlagParam)
562}
563
564const extractContextFlagParams = (command: Command.Any): ReadonlyArray<FlagParam> => {
565 const commandImpl = toImpl(command)

Callers 1

consumeLevelFunction · 0.85

Calls 2

toImplFunction · 0.90
filterMethod · 0.80

Tested by

no test coverage detected