enterprise-contract / ec-cli

Enterprise Contract command line interface
https://enterprisecontract.dev/docs/ec-cli/main/index.html
Apache License 2.0
26 stars 25 forks source link

Human readable output #1631

Closed simonbaird closed 2 months ago

simonbaird commented 2 months ago

Cleaned up and ready for serious review now.

I think this could be merged as is, but it does need some extra work on the following:

Those could be in followup PRs, or could be included in this one.

Ref: EC-563.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 45.33333% with 41 lines in your changes are missing coverage. Please review.

Project coverage is 80.14%. Comparing base (d4a939b) to head (1f08226). Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631/graphs/tree.svg?width=650&height=150&src=pr&token=CY5ORXJB33&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract)](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) ```diff @@ Coverage Diff @@ ## main #1631 +/- ## ========================================== - Coverage 80.69% 80.14% -0.56% ========================================== Files 64 65 +1 Lines 4704 4779 +75 ========================================== + Hits 3796 3830 +34 - Misses 908 949 +41 ``` | [Flag](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [generative](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.14% <45.33%> (-0.56%)` | :arrow_down: | | [integration](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.14% <45.33%> (-0.56%)` | :arrow_down: | | [unit](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.14% <45.33%> (-0.56%)` | :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=enterprise-contract#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [cmd/validate/image.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631?src=pr&el=tree&filepath=cmd%2Fvalidate%2Fimage.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-Y21kL3ZhbGlkYXRlL2ltYWdlLmdv) | `93.58% <100.00%> (+0.14%)` | :arrow_up: | | [internal/applicationsnapshot/report.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631?src=pr&el=tree&filepath=internal%2Fapplicationsnapshot%2Freport.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvYXBwbGljYXRpb25zbmFwc2hvdC9yZXBvcnQuZ28=) | `70.34% <0.00%> (-1.68%)` | :arrow_down: | | [internal/utils/helpers.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631?src=pr&el=tree&filepath=internal%2Futils%2Fhelpers.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvdXRpbHMvaGVscGVycy5nbw==) | `67.56% <0.00%> (-14.40%)` | :arrow_down: | | [internal/utils/templates.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1631?src=pr&el=tree&filepath=internal%2Futils%2Ftemplates.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvdXRpbHMvdGVtcGxhdGVzLmdv) | `52.94% <52.94%> (ø)` | |