Files
gemini-cli/packages/core/src/utils/binaryCheck.ts

15 lines
320 B
TypeScript

/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { sync as commandExistsSync } from 'command-exists';
/**
* Checks if a binary is available in the system PATH.
*/
export function isBinaryAvailable(binaryName: string): boolean {
return commandExistsSync(binaryName);
}