Skip to content

Add JSON output for basectl doctor#106

Merged
codeforester merged 1 commit into
masterfrom
hpr/doctor-json-output
May 27, 2026
Merged

Add JSON output for basectl doctor#106
codeforester merged 1 commit into
masterfrom
hpr/doctor-json-output

Conversation

@codeforester
Copy link
Copy Markdown
Owner

Summary

  • Add --format text|json support to basectl doctor.
  • Emit structured Base doctor findings with status, name, message, and fix fields.
  • Teach the base_dev and base_setup Python doctor paths to emit JSON findings too.
  • Compose project and developer prerequisite doctor findings into dev_findings and project_findings sections.
  • Add Bash integration tests and Python unit coverage, and remove the completed TODO item.

Validation

  • bats cli/bash/commands/basectl/tests/basectl.bats
  • bats cli/bash/commands/basectl/tests/setup.bats
  • bash -n cli/bash/commands/basectl/subcommands/doctor.sh
  • bash -n cli/bash/commands/basectl/subcommands/setup_common.sh
  • env PYTHONPATH=lib/python:cli/python ~/.base.d/base/.venv/bin/python -m pytest cli/python/base_setup/tests/test_engine.py
  • env PYTHONPATH=lib/python:cli/python ~/.base.d/base/.venv/bin/python -m pytest cli/python/base_dev/tests/test_engine.py
  • env PYTHONPATH=lib/python:cli/python ~/.base.d/base/.venv/bin/python -m pylint --rcfile=.pylintrc cli/python/base_dev/engine.py cli/python/base_setup/engine.py cli/python/base_dev/tests/test_engine.py cli/python/base_setup/tests/test_engine.py
  • bin/basectl doctor --format json
  • git diff --check

@codeforester codeforester merged commit 9459dc5 into master May 27, 2026
8 checks passed
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