oras-project / oras

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

refactor: assembles printer in the common output option #1428

Closed qweeah closed 5 months ago

qweeah commented 5 months ago

What this PR does / why we need it: Follow up of #1426, de-duplicates printer initialization during command run(mentioned in https://github.com/oras-project/oras/pull/1426#pullrequestreview-2133693570)

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 86.95652% with 3 lines in your changes missing coverage. Please review.

Project coverage is 85.28%. Comparing base (cca272c) to head (813cb12).

Files Patch % Lines
cmd/oras/root/login.go 50.00% 0 Missing and 2 partials :warning:
cmd/oras/root/cp.go 75.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1428 +/- ## ========================================== + Coverage 85.26% 85.28% +0.01% ========================================== Files 106 106 Lines 3808 3798 -10 ========================================== - Hits 3247 3239 -8 + Misses 336 334 -2 Partials 225 225 ```

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