MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / run

Function run

packages/pi-tui/test/keys.test.ts:30–37  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

28function withEnvVars(vars: Record<string, string | undefined>, fn: () => void): void {
29 const entries = Object.entries(vars);
30 const run = (index: number): void => {
31 if (index >= entries.length) {
32 fn();
33 return;
34 }
35 const [name, value] = entries[index]!;
36 withEnv(name, value, () => run(index + 1));
37 };
38 run(0);
39}
40

Callers 5

withEnvVarsFunction · 0.70
withEnvFunction · 0.70
withAccessTokenMethod · 0.50
runWithActiveChildMethod · 0.50
generateMethod · 0.50

Calls 1

withEnvFunction · 0.70

Tested by

no test coverage detected