MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isCommandAvailable

Function isCommandAvailable

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

Source from the content-addressed store, hash-verified

11import { whichSync } from './which.js'
12
13function isCommandAvailable(command: string): boolean {
14 return !!whichSync(command)
15}
16
17// GUI editors that open in a separate window and can be spawned detached
18// 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