diff options
| author | Brandon Keiji <[email protected]> | 2025-04-23 22:00:40 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-23 15:00:40 -0700 |
| commit | 7f3798e180db8d56fd45002ca61331e305a36a41 (patch) | |
| tree | e019beab778f921439f15d93ec11cc0104d18d2b /packages/cli/src/ui | |
| parent | 60bee4b13750cc2bd1109612a13bc1a58b98a94d (diff) | |
feat: add CLI version number to footer (#134)
Diffstat (limited to 'packages/cli/src/ui')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 4 | ||||
| -rw-r--r-- | packages/cli/src/ui/components/Footer.tsx | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 48184cea..d6813387 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -28,9 +28,10 @@ import { Tips } from './components/Tips.js'; interface AppProps { config: Config; + cliVersion: string; } -export const App = ({ config }: AppProps) => { +export const App = ({ config, cliVersion }: AppProps) => { const [history, setHistory] = useState<HistoryItem[]>([]); const [startupWarnings, setStartupWarnings] = useState<string[]>([]); const { streamingState, submitQuery, initError, debugMessage } = @@ -165,6 +166,7 @@ export const App = ({ config }: AppProps) => { queryLength={query.length} debugMode={config.getDebugMode()} debugMessage={debugMessage} + cliVersion={cliVersion} /> <ITermDetectionWarning /> </Box> diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 6722c0fd..1a61bd2f 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -14,6 +14,7 @@ interface FooterProps { queryLength: number; debugMode: boolean; debugMessage: string; + cliVersion: string; } export const Footer: React.FC<FooterProps> = ({ @@ -21,6 +22,7 @@ export const Footer: React.FC<FooterProps> = ({ queryLength, debugMode, debugMessage, + cliVersion, }) => ( <Box marginTop={1} display="flex" justifyContent="space-between" width="100%"> {/* Left Section: Help/DebugMode */} @@ -50,6 +52,7 @@ export const Footer: React.FC<FooterProps> = ({ {/* Right Section: Gemini Label */} <Box> <Text color={Colors.AccentBlue}> {config.getModel()} </Text> + <Text color={Colors.SubtleComment}> | CLI Version: {cliVersion} </Text> </Box> </Box> ); |
