diff options
| author | DeWitt Clinton <[email protected]> | 2025-05-17 21:57:27 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-17 21:57:27 -0700 |
| commit | 13a6a9a690900a50287d344592bf02bdfb2586f1 (patch) | |
| tree | 9c1426336a26e83973e554cfc3e77fba8c629b77 /packages/cli/src/ui/components/Help.tsx | |
| parent | 9749fcb4256b87a47480ea77ff25f07aa0c4ce45 (diff) | |
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.
Diffstat (limited to 'packages/cli/src/ui/components/Help.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/Help.tsx | 18 |
1 files changed, 10 insertions, 8 deletions
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}> {' '} |
