summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/components')
-rw-r--r--packages/cli/src/ui/components/Footer.tsx12
-rw-r--r--packages/cli/src/ui/components/Help.tsx18
2 files changed, 22 insertions, 8 deletions
diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx
index a98c8760..3b3cac72 100644
--- a/packages/cli/src/ui/components/Footer.tsx
+++ b/packages/cli/src/ui/components/Footer.tsx
@@ -15,6 +15,7 @@ interface FooterProps {
debugMessage: string;
cliVersion: string;
geminiMdFileCount: number;
+ corgiMode: boolean;
}
export const Footer: React.FC<FooterProps> = ({
@@ -23,6 +24,7 @@ export const Footer: React.FC<FooterProps> = ({
debugMessage,
cliVersion,
geminiMdFileCount,
+ corgiMode,
}) => (
<Box marginTop={1}>
<Box>
@@ -62,6 +64,16 @@ export const Footer: React.FC<FooterProps> = ({
<Box>
<Text color={Colors.AccentBlue}> {config.getModel()} </Text>
<Text color={Colors.SubtleComment}>| CLI {cliVersion} </Text>
+ {corgiMode && (
+ <Text>
+ <Text color={Colors.SubtleComment}>| </Text>
+ <Text color={Colors.AccentRed}>▼</Text>
+ <Text color={Colors.Foreground}>(´</Text>
+ <Text color={Colors.AccentRed}>ᴥ</Text>
+ <Text color={Colors.Foreground}>`)</Text>
+ <Text color={Colors.AccentRed}>▼ </Text>
+ </Text>
+ )}
</Box>
</Box>
);
diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx
index 3ca182be..adc49cec 100644
--- a/packages/cli/src/ui/components/Help.tsx
+++ b/packages/cli/src/ui/components/Help.tsx
@@ -28,15 +28,17 @@ export const Help: React.FC<Help> = ({ commands }) => (
<Text bold color={Colors.Foreground}>
Commands:
</Text>
- {commands.map((command: SlashCommand) => (
- <Text key={command.name} color={Colors.SubtleComment}>
- <Text bold color={Colors.AccentPurple}>
- {' '}
- /{command.name}
+ {commands
+ .filter((command) => command.description)
+ .map((command: SlashCommand) => (
+ <Text key={command.name} color={Colors.SubtleComment}>
+ <Text bold color={Colors.AccentPurple}>
+ {' '}
+ /{command.name}
+ </Text>
+ {command.description && ' - ' + command.description}
</Text>
- {command.description && ' - ' + command.description}
- </Text>
- ))}
+ ))}
<Text color={Colors.SubtleComment}>
<Text bold color={Colors.AccentPurple}>
{' '}