mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-17 18:02:44 +00:00
15 lines
320 B
TypeScript
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);
|
|
}
|