MCPcopy Index your code
hub / github.com/yargs/yargs / command

Function command

lib/command.ts:785–792  ·  view source on GitHub ↗
(
  usage: UsageInstance,
  validation: ValidationInstance,
  globalMiddleware: GlobalMiddleware,
  shim: PlatformShim
)

Source from the content-addressed store, hash-verified

783
784// Adds support to yargs for lazy loading a hierarchy of commands:
785export function command(
786 usage: UsageInstance,
787 validation: ValidationInstance,
788 globalMiddleware: GlobalMiddleware,
789 shim: PlatformShim
790) {
791 return new CommandInstance(usage, validation, globalMiddleware, shim);
792}
793
794export interface CommandHandlerDefinition
795 extends Partial<

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…