Skip to content

Add 'doctor' and 'explain' commands (v3.11.0) - #4

Merged
Asimatasert merged 2 commits into
masterfrom
feat/doctor-explain-rebased
Jul 16, 2026
Merged

Add 'doctor' and 'explain' commands (v3.11.0)#4
Asimatasert merged 2 commits into
masterfrom
feat/doctor-explain-rebased

Conversation

@Asimatasert

Copy link
Copy Markdown
Owner

Summary

Revives the previously closed #2, rebased onto v3.10.0 (no conflicts, bundle regenerated).

  • doctor: local, read-only health checks with ✓/!/✗ output and a non-zero exit on problems — required/optional toolchain, output dir + free disk, per-database backup freshness (age of the newest dump), newest-archive readability, and the jobs file. With --from/--to it also tests connectivity. Useful as a cron pre-flight or CI/monitoring gate.
  • explain [topic]: built-in, offline reference for what each command is for and when to use it, with key options and examples.

Wired into dispatch, help, README and bash/zsh/fish completions (also adds the previously-missing bot completion). Version bumped to 3.11.0 with a changelog entry.

Testing

  • ./build.sh --check green; doctor and explain smoke-tested (doctor exits 0 on a healthy env, flags missing pv correctly)
  • v3.10.0 features regression-checked (--compress-where/--from-stale still present and parsed)

Two terminal-native features distilled from the (abandoned) web-console
exploration — the genuinely useful parts, with no server/attack surface.

- 'doctor': local, read-only health checks with ✓/!/✗ output and a non-zero
  exit on problems — required/optional toolchain, output dir + free disk,
  per-database backup freshness (age of the newest dump), newest-archive
  readability, and the jobs file. With --from/--to it also tests connectivity.
  Good as a cron pre-flight or CI gate.
- 'explain [topic]': built-in, offline reference for what each command is for
  and when to use it (dump/restore/clone/stream/upgrade/fetch/batch/bot/
  list/meta/clean/doctor + masking/retention), with key options and examples.

Wired into dispatch, help, README, and bash/zsh/fish completions (also adds the
previously-missing 'bot' completion). New modules src/71-explain.sh and
src/73-doctor.sh; regenerated the bundled t-pgsql (build --check passes).
@Asimatasert
Asimatasert merged commit 8edc91e into master Jul 16, 2026
2 checks passed
@Asimatasert
Asimatasert deleted the feat/doctor-explain-rebased branch July 16, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant