MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / commandExists

Function commandExists

packages/codex-native-api/src/daemon_manager.ts:1043–1052  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

1041}
1042
1043async function commandExists(command: string): Promise<boolean> {
1044 return await new Promise<boolean>((resolve) => {
1045 const child = spawn(command, ['--version'], {
1046 stdio: 'ignore',
1047 windowsHide: true,
1048 });
1049 child.once('error', () => resolve(false));
1050 child.once('exit', (code) => resolve(code === 0));
1051 });
1052}
1053
1054async function printFileTail(
1055 filePath: string,

Callers 1

installDaemonFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected