MCPcopy
hub / github.com/midwayjs/midway / CommandRunner

Interface CommandRunner

packages/commander/src/interface.ts:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26export type Context = IMidwayCommanderContext;
27
28export interface CommandRunner {
29 run(
30 passedParams: string[],
31 options?: Record<string, any>
32 ): unknown | Promise<unknown>;
33}

Callers 1

loadCommandsMethod · 0.65

Implementers 15

HelloCommandpackages/commander/test/index.test.ts
AliasedCommandpackages/commander/test/index.test.ts
DefaultOptionCommandpackages/commander/test/index.test.ts
RequiredOptionCommandpackages/commander/test/index.test.ts
MultiArgsCommandpackages/commander/test/index.test.ts
NumberOptionCommandpackages/commander/test/index.test.ts
WithContextCommandpackages/commander/test/index.test.ts
AskCommandpackages/commander/test/index.test.ts
ReturnTextCommandpackages/commander/test/index.test.ts
ReturnJsonCommandpackages/commander/test/index.test.ts
ReturnStreamCommandpackages/commander/test/index.test.ts
ReturnAsyncIterableCommandpackages/commander/test/index.test.ts

Calls

no outgoing calls

Tested by

no test coverage detected