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

Function execFileText

apps/kimi-code/src/cli/update/source.ts:79–89  ·  view source on GitHub ↗
(command: string, args: readonly string[])

Source from the content-addressed store, hash-verified

77}
78
79function execFileText(command: string, args: readonly string[]): Promise<string> {
80 return new Promise((resolveOutput, reject) => {
81 execFile(command, [...args], { encoding: 'utf-8' }, (error, stdout) => {
82 if (error) {
83 reject(error);
84 return;
85 }
86 resolveOutput(stdout);
87 });
88 });
89}
90
91function normalizePathForComparison(filePath: string, platform: NodeJS.Platform): string | null {
92 const trimmed = filePath.trim();

Callers 1

detectInstallSourceFunction · 0.70

Calls 1

rejectFunction · 0.85

Tested by

no test coverage detected