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

Function getCommandPath

packages/effect/src/unstable/cli/internal/parser.ts:42–46  ·  view source on GitHub ↗
(parsedInput: ParsedTokens)

Source from the content-addressed store, hash-verified

40
41/** @internal */
42export const getCommandPath = (parsedInput: ParsedTokens): ReadonlyArray<string> =>
43 Option.match(parsedInput.subcommand, {
44 onNone: () => [],
45 onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
46 })
47
48/** @internal */
49export const parseArgs = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected