Commit 4b5dd19
committed
feat(fsck): add --page-size override, --help, and split exit codes
Split pagedb-fsck.rs into a directory module (cli/run/main) so grammar
parsing, execution, and exit-code policy are separately testable.
Adds --page-size for stores created at a non-default page size and a
--help/-h flag, and gives usage errors, an unreadable store, and an
actual integrity failure distinct exit codes (2, 3, 1) instead of one
generic non-zero.1 parent d624869 commit 4b5dd19
7 files changed
Lines changed: 871 additions & 204 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
| |||
This file was deleted.
0 commit comments