Add stable-ID rule version diff
This commit is contained in:
1 parent
c4428efd19
commit
a8a28623df
9 files changed
+599
-158
No files matched your search
@@ -243,6 +243,17 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
summary: "Inspect a specific rule version",
|
||||
usage: ["seal-use rules version <versionId|versionNumber|latest> [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "diff",
|
||||
summary: "Compare two published rule versions by stable rule ID",
|
||||
usage: ["seal-use rules diff <fromVersion> <toVersion> [--rule-id <stableRuleId>] [--include-unchanged] [--format unified|json] [--corp <corpId>]"],
|
||||
options: [
|
||||
{ flag: "--rule-id <id>", description: "Compare only one stable rule ID; never fall back to code or position" },
|
||||
{ flag: "--include-unchanged", description: "Include unchanged rules in the structured changes list" },
|
||||
{ flag: "--format unified|json", description: "Return unified diff text together with structured metadata" }
|
||||
],
|
||||
description: "Compares published snapshots with stable rule IDs. The command refuses to guess when a snapshot lacks an ID, so code reordering cannot create a false match."
|
||||
},
|
||||
{
|
||||
name: "get",
|
||||
summary: "Get single rule by code or record ID",
|
||||
|
||||
Reference in new issue
Block a user