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

Function withCmdSuffix

apps/kimi-code/src/cli/update/preflight.ts:58–60  ·  view source on GitHub ↗
(base: string, platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

56type UpdateLogger = Pick<Logger, 'info' | 'warn'>;
57
58function withCmdSuffix(base: string, platform: NodeJS.Platform): string {
59 return platform === 'win32' ? `${base}.cmd` : base;
60}
61
62function bunCommand(platform: NodeJS.Platform): string {
63 return platform === 'win32' ? 'bun.exe' : 'bun';

Callers 1

spawnForSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected