mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user