oras-project / oras

OCI registry client - managing content like artifacts, images, packages
https://oras.land
Apache License 2.0
1.33k stars 160 forks source link

feat: add `--template` and support `--format go-template=TEMPLATE` experience #1377

Closed qweeah closed 1 month ago

qweeah commented 1 month ago

What this PR does / why we need it: This PR implements latest change in #1199

Please check the following list:

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 85.02%. Comparing base (96d64da) to head (70cd7f0).

Files Patch % Lines
cmd/oras/internal/display/handler.go 91.11% 1 Missing and 3 partials :warning:
cmd/oras/root/discover.go 86.66% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1377 +/- ## ========================================== + Coverage 84.91% 85.02% +0.10% ========================================== Files 107 107 Lines 3739 3806 +67 ========================================== + Hits 3175 3236 +61 - Misses 336 341 +5 - Partials 228 229 +1 ```

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