From aa10ccba713d49bef6bf474bfd72c0852e3da611 Mon Sep 17 00:00:00 2001 From: Abhi <43648792+abhipatel12@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:45:44 -0400 Subject: feature(commands) - Refactor Slash Command + Vision For the Future (#3175) --- packages/cli/src/ui/components/Help.tsx | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'packages/cli/src/ui/components/Help.tsx') diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx index 3a3d7bd1..5a04514a 100644 --- a/packages/cli/src/ui/components/Help.tsx +++ b/packages/cli/src/ui/components/Help.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; -import { SlashCommand } from '../hooks/slashCommandProcessor.js'; +import { SlashCommand } from '../commands/types.js'; interface Help { commands: SlashCommand[]; @@ -67,13 +67,25 @@ export const Help: React.FC = ({ commands }) => ( {commands .filter((command) => command.description) .map((command: SlashCommand) => ( - - - {' '} - /{command.name} + + + + {' '} + /{command.name} + + {command.description && ' - ' + command.description} - {command.description && ' - ' + command.description} - + {command.subCommands && + command.subCommands.map((subCommand) => ( + + + + {subCommand.name} + + {subCommand.description && ' - ' + subCommand.description} + + ))} + ))} -- cgit v1.2.3