Feat: Add Machine Hostname to CLI interface (#25637)

Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
mahadevan
2026-05-08 21:42:35 +05:30
committed by GitHub
parent 3805640530
commit 2cad5db770
9 changed files with 169 additions and 118 deletions
+12
View File
@@ -18,6 +18,7 @@ import {
} from '@google/gemini-cli-core';
import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js';
import process from 'node:process';
import os from 'node:os';
import { MemoryUsageDisplay } from './MemoryUsageDisplay.js';
import { ContextUsageDisplay } from './ContextUsageDisplay.js';
import { QuotaDisplay } from './QuotaDisplay.js';
@@ -35,6 +36,8 @@ import {
} from '../../config/footerItems.js';
import { isDevelopment } from '../../utils/installationInfo.js';
const HOSTNAME = os.hostname();
interface CwdIndicatorProps {
targetDir: string;
maxWidth: number;
@@ -386,6 +389,15 @@ export const Footer: React.FC = () => {
);
break;
}
case 'hostname': {
addCol(
id,
header,
() => <Text color={itemColor}>{HOSTNAME}</Text>,
HOSTNAME.length,
);
break;
}
case 'auth': {
if (!settings.merged.ui.showUserIdentity) break;
if (!authType) break;