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

Function extractNames

packages/effect/src/unstable/cli/internal/command.ts:327–334  ·  view source on GitHub ↗
(flags: ReadonlyArray<Param.Any>)

Source from the content-addressed store, hash-verified

325 const parentOptionNames = new Set<string>()
326
327 const extractNames = (flags: ReadonlyArray<Param.Any>): void => {
328 for (const option of flags) {
329 const singles = Param.extractSingleParams(option)
330 for (const single of singles) {
331 parentOptionNames.add(single.name)
332 }
333 }
334 }
335
336 extractNames((options?.contextConfig ?? parentImpl.contextConfig).flags)
337

Callers 1

checkForDuplicateFlagsFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected