Skip to content

Tighten basectl doctor text output formatting #1723

Description

@codeforester

Goal

Polish the human-readable basectl doctor output after the shared text-rendering changes.

Background

A verbose project doctor run currently leaves an extra blank line after the runtime-chain log, prints finding fixes at the left margin instead of under the finding message column, and separates the final blocking-issue summary from the findings with another blank line. The summary is also emitted as an unstructured line rather than an INFO log.

Scope

  • Remove the blank line between the final runtime-chain INFO entry and the first doctor finding.
  • Align Fix: continuation lines with the finding message column in both visual and no-color text modes.
  • Remove the blank line before the final summary.
  • Emit the final Base doctor and CI doctor summaries through the INFO logger, preserving wording, status, and exit codes.
  • Add focused BATS coverage for spacing, fix indentation, and INFO-level summary output.

Acceptance criteria

  • Verbose doctor output has no blank line after the last runtime-chain entry.
  • A finding fix begins under the finding message column rather than at the left margin.
  • The final summary immediately follows the last finding/fix line.
  • The final summary is timestamped and labeled INFO.
  • Successful and failing doctor paths, CI text mode, JSON mode, color/no-color behavior, and exit codes remain correct.

Non-goals

  • No changes to finding IDs, messages, remediation text, JSON output, or diagnostic policy.
  • No changes to setup runtime-chain content or log levels other than the final text summary.

Project fields

Status: In Progress
Priority: P2
Area: CLI
Initiative: Adoption Polish
Size: S
Milestone: v1.8.0

Agent assignment

Implementation and verification: codeforester.

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

No type

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions