MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / commandExists

Function commandExists

src/utils/computerUse/platforms/linux.ts:43–46  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

41}
42
43function commandExists(name: string): boolean {
44 const result = Bun.spawnSync({ cmd: ['which', name], stdout: 'pipe', stderr: 'pipe' })
45 return result.exitCode === 0
46}
47
48// ---------------------------------------------------------------------------
49// xdotool key name mapping

Callers 4

pngToJpegBase64Function · 0.85
captureWindowFunction · 0.85
listRunningFunction · 0.85
openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected