From 13a6a9a690900a50287d344592bf02bdfb2586f1 Mon Sep 17 00:00:00 2001 From: DeWitt Clinton Date: Sat, 17 May 2025 21:57:27 -0700 Subject: Introduce a small easter egg. Woof. (#412) Also changes auto-completion and /help to skip over slash commands that don't contain a description to avoid spoiling the surprise. --- packages/cli/src/ui/components/Footer.tsx | 12 ++++++++++++ packages/cli/src/ui/components/Help.tsx | 18 ++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) (limited to 'packages/cli/src/ui/components') 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 = ({ @@ -23,6 +24,7 @@ export const Footer: React.FC = ({ debugMessage, cliVersion, geminiMdFileCount, + corgiMode, }) => ( @@ -62,6 +64,16 @@ export const Footer: React.FC = ({ {config.getModel()} | CLI {cliVersion} + {corgiMode && ( + + | + + + + `) + + + )} ); 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 = ({ commands }) => ( Commands: - {commands.map((command: SlashCommand) => ( - - - {' '} - /{command.name} + {commands + .filter((command) => command.description) + .map((command: SlashCommand) => ( + + + {' '} + /{command.name} + + {command.description && ' - ' + command.description} - {command.description && ' - ' + command.description} - - ))} + ))} {' '} -- cgit v1.2.3