mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-07 20:00:37 -07:00
Fix(cli): Improve Homebrew update instruction to specify gemini-cli (#14502)
This commit is contained in:
@@ -149,7 +149,9 @@ describe('getInstallationInfo', () => {
|
|||||||
);
|
);
|
||||||
expect(info.packageManager).toBe(PackageManager.HOMEBREW);
|
expect(info.packageManager).toBe(PackageManager.HOMEBREW);
|
||||||
expect(info.isGlobal).toBe(true);
|
expect(info.isGlobal).toBe(true);
|
||||||
expect(info.updateMessage).toContain('brew upgrade');
|
expect(info.updateMessage).toBe(
|
||||||
|
'Installed via Homebrew. Please update with "brew upgrade gemini-cli".',
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should fall through if brew command fails', () => {
|
it('should fall through if brew command fails', () => {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export function getInstallationInfo(
|
|||||||
packageManager: PackageManager.HOMEBREW,
|
packageManager: PackageManager.HOMEBREW,
|
||||||
isGlobal: true,
|
isGlobal: true,
|
||||||
updateMessage:
|
updateMessage:
|
||||||
'Installed via Homebrew. Please update with "brew upgrade".',
|
'Installed via Homebrew. Please update with "brew upgrade gemini-cli".',
|
||||||
};
|
};
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
// Brew is not installed or gemini-cli is not installed via brew.
|
// Brew is not installed or gemini-cli is not installed via brew.
|
||||||
|
|||||||
Reference in New Issue
Block a user