enterprise-contract / ec-cli

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

Support multiple terms #1667

Closed lcarva closed 1 month ago

lcarva commented 1 month ago

Some policy rules emit a list of terms. This commit adds support in the CLI to process those lists.

Ref: EC-666

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.04%. Comparing base (6207701) to head (891397d). Report is 8 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1667/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/1667?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 #1667 +/- ## ========================================== + Coverage 80.00% 80.04% +0.03% ========================================== Files 65 65 Lines 4796 4810 +14 ========================================== + Hits 3837 3850 +13 - Misses 959 960 +1 ``` | [Flag](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1667/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/1667/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.04% <95.23%> (+0.03%)` | :arrow_up: | | [integration](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1667/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.04% <95.23%> (+0.03%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1667/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `80.04% <95.23%> (+0.03%)` | :arrow_up: | 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/1667?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [internal/evaluator/conftest\_evaluator.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1667?src=pr&el=tree&filepath=internal%2Fevaluator%2Fconftest_evaluator.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvZXZhbHVhdG9yL2NvbmZ0ZXN0X2V2YWx1YXRvci5nbw==) | `84.41% <95.23%> (+0.24%)` | :arrow_up: |
lcarva commented 1 month ago

/retest