MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / commandExists

Function commandExists

tools/claw-launcher-ui/server.mjs:959–969  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

957}
958
959async function commandExists(command) {
960 const lookupCommand = process.platform === 'win32' ? 'where.exe' : 'which'
961 return await new Promise(resolvePromise => {
962 const child = spawn(lookupCommand, [command], {
963 stdio: 'ignore',
964 })
965
966 child.once('error', () => resolvePromise(false))
967 child.once('exit', code => resolvePromise(code === 0))
968 })
969}
970
971async function pathType(path) {
972 try {

Callers 2

resolveRunnerFunction · 0.85
runConnectionDiagnosticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected