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

Function getSubcommands

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

Source from the content-addressed store, hash-verified

192
193/** @internal */
194export const getSubcommands = <A>(
195 self: Descriptor.Command<A>
196): HashMap.HashMap<string, Descriptor.Command<unknown>> =>
197 HashMap.fromIterable(getSubcommandsInternal(self as Instruction))
198
199/** @internal */
200export 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