diff options
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}> {' '} |
