MCPcopy
hub / github.com/coder/mux / isCoderCommand

Function isCoderCommand

src/node/services/coderService.test.ts:48–54  ·  view source on GitHub ↗
(file: string, args: string[], expectedArgs: string[])

Source from the content-addressed store, hash-verified

46}
47
48function isCoderCommand(file: string, args: string[], expectedArgs: string[]): boolean {
49 return (
50 file === "coder" &&
51 args.length === expectedArgs.length &&
52 args.every((arg, i) => arg === expectedArgs[i])
53 );
54}
55
56function mockVersionAndWhoami(options: { version: string; username?: string }): void {
57 execAsyncSpy?.mockImplementationOnce(() =>

Callers 2

mockPrefetchCallsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected