Skip to content

Commit faee0da

Browse files
committed
refactor(cli/fix): migrate to CommandOutput with markdown rendering
Convert cli/fix from 20+ imperative log calls to structured FixResult data returned via CommandOutput. Changes: - Define FixIssue and FixResult types for structured diagnostic output - All handler functions (ownership, permissions, schema) now return arrays of FixIssue objects instead of logging directly - Add formatFixResult() human formatter with per-category sections, status markers (✓/✗/•), and instructions blocks - Use OutputError for failure cases (renders data then exits code 1) - --json and --fields flags now supported automatically - Tests updated to assert on rendered stdout instead of consola stderr
1 parent 766998f commit faee0da

3 files changed

Lines changed: 486 additions & 212 deletions

File tree

0 commit comments

Comments
 (0)