MCPcopy Create free account
hub / github.com/google-gemini/gemini-cli / emit

Method emit

packages/cli/src/utils/devtoolsService.test.ts:36–40  ·  view source on GitHub ↗
(event: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

34 }
35
36 emit(event: string, ...args: unknown[]) {
37 for (const fn of this.listeners.get(event) || []) {
38 fn(...args);
39 }
40 }
41
42 simulateOpen() {
43 this.emit('open');

Callers 15

simulateOpenMethod · 0.95
simulateErrorMethod · 0.95
gemini.test.tsxFile · 0.45
events.test.tsFile · 0.45
relaunch.test.tsFile · 0.45
createMockChildProcessFunction · 0.45
handleAutoUpdateFunction · 0.45
enableNetworkLoggingMethod · 0.45
safeEmitNetworkMethod · 0.45
logConsoleMethod · 0.45

Calls 2

fnFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected