feat: add 'doctor' and 'explain' commands - #2
Closed
Asimatasert wants to merge 1 commit into
Closed
Conversation
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).
Owner
Author
|
Closing — moving this work local for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two terminal-native features distilled from the (now-dropped) web-console idea — the parts that are genuinely useful in a CLI, with no server or added attack surface.
t-pgsql doctorLocal, read-only health checks with
✓ / ! / ✗output; exits non-zero on any problem (nice as a cron pre-flight or CI gate):--from/--to: connectivity testt-pgsql explain [topic]Built-in, offline reference for what each command is for and when to use it, with key options and examples. Topics: dump, restore, clone, stream, upgrade, fetch, batch, bot, list/meta/clean, doctor, masking, retention.
Wiring
Dispatch, help text, README, and bash/zsh/fish completions (also adds the previously-missing
botcompletion). New modulessrc/71-explain.sh,src/73-doctor.sh; bundledt-pgsqlregenerated (build --checkpasses).Note: version left at 3.9.0 — a bump + release is a separate step. Translated READMEs not yet updated for these two commands.
🤖 Generated with Claude Code