From 10803dfbaaadc96f4dae67b29281236cf7528071 Mon Sep 17 00:00:00 2001 From: Ting-Wai To <40179554+tingwai@users.noreply.github.com> Date: Wed, 13 Aug 2025 22:04:44 -0700 Subject: [PATCH] sort slash commands --- src/slashCommands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slashCommands.ts b/src/slashCommands.ts index ce8261c63..063645f16 100644 --- a/src/slashCommands.ts +++ b/src/slashCommands.ts @@ -1,4 +1,5 @@ import { type AssistantConfig } from "@continuedev/sdk"; +import chalk from "chalk"; import { isAuthenticated, @@ -78,9 +79,10 @@ async function handleHelp(args: string[], assistant: AssistantConfig) { const helpMessage = [ "Slash commands:", ...allCommands + .sort((a, b) => a.name.localeCompare(b.name)) .map( (cmd) => - `- /${cmd.name}: ${cmd.description}`, + `- ${chalk.white(`/${cmd.name}:`)} ${chalk.gray(cmd.description)}`, ), ].join("\n"); posthogService.capture("useSlashCommand", { name: "help" });