summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-08 09:43:38 +0200
committerPaul Buetow <paul@buetow.org>2026-02-08 09:43:38 +0200
commita5ed6636ad668ae2b9c7e02ea7a6d0e809ba316a (patch)
tree66ba304ec80e0c3c076293c8e2869a9ac7465e0c /internal/run.go
parent115f2b371bef591a114a072794116b160fc15907 (diff)
feat: write JSON status report next to HTML
Add a JSON report alongside the HTML status page with matching sections and summary counts, plus a last-updated timestamp for remote consumption. Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/run.go b/internal/run.go
index 63ee16f..21b9b6d 100644
--- a/internal/run.go
+++ b/internal/run.go
@@ -76,6 +76,9 @@ func Run(ctx context.Context, configFile string, renotify, force bool) error {
if err := persistHTMLReport(state, subject, conf); err != nil {
notifyError(conf, err)
}
+ if err := persistJSONReport(state, subject, conf); err != nil {
+ notifyError(conf, err)
+ }
}
return nil