jborean93 / PowerShell-Yayaml

A YAML parser and writer that uses an Assembly Load Context on PowerShell 7+
MIT License
30 stars 2 forks source link

Add support for serializing comments #18

Closed jborean93 closed 2 months ago

jborean93 commented 2 months ago

This commit adds the ability to serialize comments with the ConvertTo-Yaml cmdlet. Comments are added to the value using the Add-YamlFormat cmdlet.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 95.65217% with 5 lines in your changes missing coverage. Please review.

Project coverage is 93.83%. Comparing base (a6fee18) to head (68e60ee).

Files Patch % Lines
src/Yayaml.Module/ConvertToYaml.cs 94.94% 0 Missing and 5 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #18 +/- ## ========================================== - Coverage 94.02% 93.83% -0.20% ========================================== Files 16 16 Lines 1088 1557 +469 Branches 194 218 +24 ========================================== + Hits 1023 1461 +438 - Misses 46 71 +25 - Partials 19 25 +6 ``` | [Flag](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | Coverage Δ | | |---|---|---| | [PS_5.1_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `89.06% <88.69%> (+0.96%)` | :arrow_up: | | [PS_7.2_x64_Linux](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `94.09% <88.69%> (-0.26%)` | :arrow_down: | | [PS_7.2_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `94.09% <88.69%> (-0.26%)` | :arrow_down: | | [PS_7.3_x64_Linux](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `94.09% <88.69%> (-0.26%)` | :arrow_down: | | [PS_7.3_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `94.09% <88.69%> (-0.26%)` | :arrow_down: | | [PS_7.4_x64_Linux](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `94.09% <88.69%> (-0.26%)` | :arrow_down: | | [PS_7.4_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/18/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `94.09% <88.69%> (-0.26%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.