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