You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,64 @@ Violations are displayed with human-readable explanations:
61
61
-**For dependency violations:** Shows which module imports/calls/uses another, with their respective layers
62
62
-**For node violations:** Shows the element type and where it was found (layer, container, context)
63
63
64
+
## check
65
+
66
+
Evaluate architectural rules against an existing snapshot and write violations back into it.
67
+
68
+
This separates the "capture" step (`snapshot save`) from the "verify" step (`check`), allowing you to snapshot your architecture once and check it against different rule sets or at different times. The existing snapshot object is updated in-place — no new snapshot is created.
69
+
70
+
```bash
71
+
pacta check [PATH] [OPTIONS]
72
+
```
73
+
74
+
**Arguments:**
75
+
76
+
| Argument | Default | Description |
77
+
|----------|---------|-------------|
78
+
|`PATH`|`.`| Repository root |
79
+
80
+
**Options:**
81
+
82
+
| Option | Default | Description |
83
+
|--------|---------|-------------|
84
+
|`--ref REF`|`latest`| Snapshot ref to check |
85
+
|`--model FILE`|`architecture.yml`| Architecture model file |
Copy file name to clipboardExpand all lines: docs/getting-started.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ containers:
38
38
Now capture a snapshot:
39
39
40
40
```bash
41
-
pacta snapshot . --model architecture.yml
41
+
pacta snapshot save . --model architecture.yml
42
42
```
43
43
44
44
Pacta just analyzed every module and dependency in your codebase and stored a content-addressed snapshot in `.pacta/`. This snapshot is immutable — a permanent record of your architecture at this moment.
@@ -50,7 +50,7 @@ Pacta just analyzed every module and dependency in your codebase and stored a co
50
50
A week passes. Your team ships features, fixes bugs, refactors code. Run another snapshot:
51
51
52
52
```bash
53
-
pacta snapshot . --model architecture.yml
53
+
pacta snapshot save . --model architecture.yml
54
54
```
55
55
56
56
Now you have two points in time. See what changed:
@@ -122,9 +122,13 @@ rule:
122
122
message: Domain layer must not import from Infrastructure
0 commit comments