Skip to content

refactor: assembles printer in the common output option#1428

Merged
qweeah merged 2 commits into
oras-project:mainfrom
qweeah:print-option
Jun 24, 2024
Merged

refactor: assembles printer in the common output option#1428
qweeah merged 2 commits into
oras-project:mainfrom
qweeah:print-option

Conversation

@qweeah

@qweeah qweeah commented Jun 23, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Follow up of #1426, de-duplicates printer initialization during command run(mentioned in #1426 (review))

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@codecov

codecov Bot commented Jun 23, 2024

Copy link
Copy Markdown

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 ⚠️
cmd/oras/root/cp.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@qweeah qweeah merged commit f8519a9 into oras-project:main Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants