feat: add some default commands

This commit is contained in:
d-kimsuon
2025-09-03 18:24:23 +09:00
parent 35329882f9
commit adccbb81cc
2 changed files with 2 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ export const CommandCompletion = forwardRef<
// メモ化されたコマンドフィルタリング
const { shouldShowCompletion, filteredCommands } = useMemo(() => {
const allCommands = [
...(commandData?.defaultCommands || []),
...(commandData?.globalCommands || []),
...(commandData?.projectCommands || []),
];

View File

@@ -163,6 +163,7 @@ export const routes = (app: HonoAppType) => {
globalCommands.status === "fulfilled" ? globalCommands.value : [],
projectCommands:
projectCommands.status === "fulfilled" ? projectCommands.value : [],
defaultCommands: ["/init", "/compact"],
});
})