feat(cli): add environment doctor command - #100
Merged
Merged
Conversation
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.
Summary of Changes
Adds
torollo doctoras a single support command for validating a local Torollo setup before or afterstartfails, and reduces the work required during the package's first launch.startalready selects replacements.torollo doctor --jsonemits a versioned, stable report with system metadata, check ids, statuses, details, and hints. Home-directory paths are redacted to~; JSON mode writes no progress or color noise to stdout.torollo startnow points users to the full doctor report.Types of Changes
Verification & Testing
Automated Checks
npm run lintsuccessfully with no errors (backend clean; frontend: 0 errors and 5 pre-existing warnings in untouched files)npm run buildsuccessfully with no compilation errors (backend and frontend)npm testsuccessfully: 39/39 CLI testsnpm test -- --runInBandsuccessfully: 509/509 testsnpm test -- --maxWorkers=1successfully: 371/371 testsnpm pack --dry-runsuccessfully, including the fullprepackbuildManual Verification
node bin/cli.js doctoragainst the real local Docker daemon: all six checks passed and the command exited 0.node bin/cli.js doctor --json, parsed the result, and confirmedschemaVersion: 1,ok: true, the six stable check ids, and exit 0.bin/lib/doctor.jsis present andbin/lib/doctor.test.jsis excluded.Checklist