Clarify enterprise onboarding commands

This commit is contained in:
gitea committed 2026-09-22 13:50:35 +08:00
1 parent 941a1597c0
commit 50a8beb3fd
14 files changed
+74 -29

No files matched your search

+7
View File
@@ -75,6 +75,7 @@ describe("renderHelp", () => {
expect(help).toContain("seal-use corps sync-test");
expect(help).toContain("发现与选择:");
expect(help).toContain("企业接入:");
expect(help).toContain("seal-use corps add-hose-persistent");
expect(help).toContain("Hose 专属能力:");
expect(help).toContain("seal-use corps probe-hose");
expect(help).toContain("seal-use corps hose-staffs");
@@ -103,6 +104,12 @@ describe("renderHelp", () => {
expect(help).not.toContain("seal-use webhook");
});
test("documents the add-hose compatibility alias", () => {
const help = renderHelp(["corps", "add-hose-persistent"]);
expect(help).toContain("seal-use corps add-hose-persistent");
expect(help).toContain("旧命令 add-hose 仍可用");
});
test("throws usage error for unknown area or subcommand", () => {
expect(() => renderHelp(["nonexistent-domain"])).toThrow(/Unknown command/);
expect(() => renderHelp(["corps", "nonexistent-cmd"])).toThrow(/Unknown corps command/);