goccy / go-yaml

YAML support for the Go language
MIT License
1.15k stars 132 forks source link

feat(printer): Add support for formatting comment nodes #469

Closed gabe565 closed 21 hours ago

gabe565 commented 3 months ago

Hi!

I use printer to colorize YAML output to a terminal here (see also: yq color printer), and would like to print comments in gray. This PR adds support for formatting comment nodes.

codecov-commenter commented 3 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 78.69%. Comparing base (237df0e) to head (d30e09a).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #469 +/- ## ========================================== - Coverage 78.77% 78.69% -0.08% ========================================== Files 13 13 Lines 4004 4008 +4 ========================================== Hits 3154 3154 - Misses 591 595 +4 Partials 259 259 ```