Switch storage serialization from YAML to JSON (P1.2)

Replace writeYAML with writeJSON (json.MarshalIndent, 2-space indent,
trailing newline) and switch the config and jobs Unmarshal calls to
encoding/json. Mark P1.2 done in the pre-release task list.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
mixeme
2026-06-22 21:24:28 +03:00
parent b7bbb41845
commit 7ec5521309
2 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ These land together because both edit `domain/job.go` and `storage/store.go`.
### Phase 1 — Storage JSON + exit-code removal
- [x] P1.1 — JSON struct tags
- [ ] P1.2 — `writeJSON` + JSON unmarshal
- [x] P1.2 — `writeJSON` + JSON unmarshal
- [ ] P1.3 — `gosentry.json` / `jobs.json` paths; drop pysentry name
- [ ] P1.4 — One-time YAML import
- [ ] P1.5 — Remove `SuccessExitCodes` across code