MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isCommandAvailable

Function isCommandAvailable

source code/utils/editor.ts:15–17  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

13import { whichSync } from './which.js'
14
15function isCommandAvailable(command: string): boolean {
16 return !!whichSync(command)
17}
18
19// GUI editors that open in a separate window and can be spawned detached
20// without fighting the TUI for stdin. VS Code forks (cursor, windsurf, codium)

Callers 1

editor.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected