Skip to content

Add colored output and a category overview of added types - #34

Merged
TomasVotruba merged 1 commit into
mainfrom
add-type-overview
Sep 16, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
add-type-overview

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Color the results and summarize what was added:

  • dry-run diff lines are colored - added green, removed red
  • an "Added types by category" overview groups the added types into scalar, object, array, union and other, each colored, with bold counts
  • apply.Source now returns the added type declarations (text like int, ?string, \\Foo) instead of a bare count, so the overview can categorize them

New color.go holds the ANSI helpers, type classification and the overview/patch coloring. All color is stdout-terminal gated and honors NO_COLOR, so piped output stays plain.

@TomasVotruba
TomasVotruba merged commit c9f80fe into main Sep 16, 2026
4 checks passed
@TomasVotruba
TomasVotruba deleted the add-type-overview branch September 16, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant