MCPcopy Index your code
hub / github.com/Effect-TS/effect / getSubcommands

Function getSubcommands

packages/cli/src/internal/commandDescriptor.ts:193–196  ·  view source on GitHub ↗
(
  self: Descriptor.Command<A>
)

Source from the content-addressed store, hash-verified

191
192/** @internal */
193export const getSubcommands = <A>(
194 self: Descriptor.Command<A>
195): HashMap.HashMap<string, Descriptor.Command<unknown>> =>
196 HashMap.fromIterable(getSubcommandsInternal(self as Instruction))
197
198/** @internal */
199export const getUsage = <A>(self: Descriptor.Command<A>): Usage.Usage => getUsageInternal(self as Instruction)

Callers

nothing calls this directly

Calls 1

getSubcommandsInternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…