feat: Redis command autocomplete in CLI

- New src/data/commands.ts: 139 Redis commands across 11 categories
- CliView.vue: autocomplete dropdown with prefix matching
- Category-colored command names (admin=read=green/write=yellow/etc)
- Up/Down navigate suggestions, Tab/Enter selects, Escape closes
- History navigation preserved when suggestions hidden
- Syntax and description shown for each command
This commit is contained in:
2026-07-07 20:59:59 +08:00
parent 05a6f6aa17
commit 742c62517c
3 changed files with 307 additions and 11 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
- [x] **多标签页** — 单连接支持同时打开 Status/Keys/CLI/SlowLog/内存分析/批量删除 多个标签
- [x] **多连接并行** — 同时打开多个连接,各自独立标签页
- [x] **Monaco 编辑器** — 替换 StringEditor 的 textarea,支持 JSON 折叠/展开/语法高亮
- [ ] **Redis 命令自动补全** — CLI 输入时智能提示(基于 commands.js 命令数据库)
- [x] **Redis 命令自动补全** — CLI 输入时智能提示(基于 commands.js 命令数据库)
- [ ] **CLI SUBSCRIBE/MONITOR** — 实时消息流 + MONITOR 命令流 + 停止按钮
- [ ] **CLI MULTI/EXEC** — 事务模式支持
- [ ] **Stream 消费者组** — XINFO GROUPS / XINFO CONSUMERS 展开表格