chore: Sort slash commands (#154)

This commit is contained in:
Devansh Jain
2025-12-05 12:36:17 -08:00
committed by GitHub
parent 2236cdbc14
commit fde6fc0ab1

View File

@@ -4,10 +4,12 @@ import { commands } from "../commands/registry";
import { colors } from "./colors";
// Compute command list once at module level since it never changes
const commandList = Object.entries(commands).map(([cmd, { desc }]) => ({
cmd,
desc,
}));
const commandList = Object.entries(commands)
.map(([cmd, { desc }]) => ({
cmd,
desc,
}))
.sort((a, b) => a.cmd.localeCompare(b.cmd));
export function CommandPreview({
currentInput,