collect: add diff to credentials file; --diff overrides it

Change --diff from store_true to default=None so CLI presence is
distinguishable from the JSON default. If not given on CLI, reads
creds_data.get("diff", False). Updated install.sh template and README.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 15:09:54 +02:00
co-authored by Claude Sonnet 4.6
parent c33236020d
commit 5944b0a7a4
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ if [[ ! -f "$CREDS_FILE" ]]; then
"interval_s": 300,
"host": "0.0.0.0",
"port": 9999,
"log_dir": "./logs"
"log_dir": "./logs",
"diff": false
}
EOF
chmod 600 "$CREDS_FILE"