fix: CLI缺少参数友好提示、config.yaml注释模板、skill目录结构规范
This commit is contained in:
@@ -26,7 +26,8 @@ describe("runInit", () => {
|
||||
join(TMP_DIR, ".rune", "config.yaml"),
|
||||
"utf-8",
|
||||
);
|
||||
expect(content.trim()).toBe("stages: {}");
|
||||
expect(content).toContain("# Rune 配置文件");
|
||||
expect(content).toContain("stages:");
|
||||
});
|
||||
|
||||
it("创建 .rune/changes 和 .rune/archive 目录", async () => {
|
||||
@@ -40,7 +41,7 @@ describe("runInit", () => {
|
||||
await runInit(TMP_DIR, ["opencode"]);
|
||||
|
||||
expect(existsSync(join(TMP_DIR, ".opencode", "commands", "rune-discuss.md"))).toBe(true);
|
||||
expect(existsSync(join(TMP_DIR, ".opencode", "skills", "rune-discuss.md"))).toBe(true);
|
||||
expect(existsSync(join(TMP_DIR, ".opencode", "skills", "rune-discuss", "SKILL.md"))).toBe(true);
|
||||
});
|
||||
|
||||
it("重复 init 不覆盖 config.yaml", async () => {
|
||||
|
||||
Reference in New Issue
Block a user