Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move logger method to command #1355

Merged
merged 4 commits into from
May 3, 2024

Conversation

TerryHowe
Copy link
Member

What this PR does / why we need it:

I think it makes a lot more sense that a command has-a logger rather than an option.

@TerryHowe TerryHowe changed the title Refactor logging method refactor: Move logger method to command Apr 17, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.78%. Comparing base (db85734) to head (a60bf6a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1355   +/-   ##
=======================================
  Coverage   84.77%   84.78%           
=======================================
  Files         104      105    +1     
  Lines        3704     3706    +2     
=======================================
+ Hits         3140     3142    +2     
  Misses        336      336           
  Partials      228      228           

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

@qweeah qweeah changed the title refactor: Move logger method to command refactor: move logger method to command Apr 19, 2024
Copy link
Contributor

@qweeah qweeah left a comment

Choose a reason for hiding this comment

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

LGTM, need to add doc comment for the public function.

cmd/oras/internal/command/logger.go Show resolved Hide resolved
Signed-off-by: Terry Howe <[email protected]>
Copy link
Contributor

@qweeah qweeah left a comment

Choose a reason for hiding this comment

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

LGTM

@TerryHowe TerryHowe merged commit 979dbd7 into oras-project:main May 3, 2024
8 checks passed
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 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