zerobyte/app/server/cli
Jakub Trávník 60c0778b74 refactor: improve config import logging, add CLI JSON output and idempotent re-runs
- Add `--json` flag for machine-readable JSON output
- Add `--log-level` flag to control logging verbosity
- Add `skipped` counter to ImportResult for idempotent operations
- Change "already exists" conditions from warnings to skipped (info logs)
- Recovery key mismatch now errors and stops import early
- Pre-check volumes and notification destinations before creation
- Attachment functions merge missing items instead of overwriting
- Add toError() and mergeResults() helpers to reduce code duplication
- Extract readConfigJson() and createOutput() for cleaner CLI code
- Move fs/path imports to top level in config-import.ts
2025-12-30 12:39:02 +01:00
..
commands refactor: improve config import logging, add CLI JSON output and idempotent re-runs 2025-12-30 12:39:02 +01:00
index.ts feat(cli): add import-config command for manual config import 2025-12-29 11:04:12 +01:00
main.ts feat: reset password cli command (#220) 2025-12-22 19:20:37 +01:00