From a66ad2e2af3d4ffd0a7ab125215e7ed3c3325452 Mon Sep 17 00:00:00 2001
From: Juliette Love <juliette29love@gmail.com>
Date: Sun, 20 Apr 2025 20:20:40 +0100
Subject: Simple debug mode for CLI side (#66)

* Adds debug mode config flag.

* Wire through debug lines

* Add debug mode logging example

* Run format

* Run format again
---
 packages/cli/src/ui/components/Footer.tsx | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'packages/cli/src/ui/components/Footer.tsx')

diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx
index 3b4e197b..35ed6910 100644
--- a/packages/cli/src/ui/components/Footer.tsx
+++ b/packages/cli/src/ui/components/Footer.tsx
@@ -10,13 +10,22 @@ import { Colors } from '../colors.js';
 
 interface FooterProps {
   queryLength: number;
+  debugMode: boolean;
+  debugMessage: string;
 }
 
-export const Footer: React.FC<FooterProps> = ({ queryLength }) => (
+export const Footer: React.FC<FooterProps> = ({
+  queryLength,
+  debugMode,
+  debugMessage,
+}) => (
   <Box marginTop={1} justifyContent="space-between">
     <Box minWidth={15}>
       <Text color={Colors.SubtleComment}>
         {queryLength === 0 ? '? for shortcuts' : ''}
+        {debugMode && (
+          <Text color="red"> {debugMessage || 'Running in debug mode.'}</Text>
+        )}
       </Text>
     </Box>
     <Text color={Colors.AccentBlue}>Gemini</Text>
-- 
cgit v1.2.3

