MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / _setInterceptor

Function _setInterceptor

packages/bumpy/src/utils/shell.ts:22–24  ·  view source on GitHub ↗
(fn: CommandInterceptor | null)

Source from the content-addressed store, hash-verified

20
21/** @internal Install a command interceptor for testing. Returns a cleanup function. */
22export function _setInterceptor(fn: CommandInterceptor | null): void {
23 _interceptor = fn;
24}
25
26function checkIntercept(args: string[], opts?: { cwd?: string; input?: string }) {
27 if (!_interceptor) return null;

Callers 2

installShellMockFunction · 0.90
uninstallShellMockFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…