feat: 新增 rune update 命令用于更新编辑器配置
This commit is contained in:
@@ -69,6 +69,18 @@ const COMMANDS: Record<string, CommandHelpDef> = {
|
||||
"rune archive fix-memory-leak",
|
||||
],
|
||||
},
|
||||
update: {
|
||||
name: "update",
|
||||
alias: "update <工具...>",
|
||||
description: "更新:更新已注入的编辑器配置",
|
||||
usage: "rune update <工具...>",
|
||||
args: [{ name: "<工具...>", desc: "要更新的 AI 工具,如 opencode、claude-code" }],
|
||||
detail: "对比已注入的命令和 skill 文件,与内置版本不一致时覆盖,不存在时新建。用于升级 Rune 后同步编辑器配置。",
|
||||
examples: [
|
||||
"rune update opencode",
|
||||
"rune update opencode claude-code",
|
||||
],
|
||||
},
|
||||
status: {
|
||||
name: "status",
|
||||
alias: "status [变更]",
|
||||
@@ -105,6 +117,7 @@ export function showGlobalHelp(): string {
|
||||
lines.push("");
|
||||
lines.push("示例:");
|
||||
lines.push(" rune init opencode 初始化并注入 OpenCode 配置");
|
||||
lines.push(" rune update opencode 更新 OpenCode 配置");
|
||||
lines.push(" rune plan add-login design 规划 \"add-login\" 的设计文档");
|
||||
lines.push(" rune status 查看当前变更状态");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user