Skip to content

fix: return error when --format and --pretty are both used#1359

Merged
qweeah merged 4 commits into
oras-project:mainfrom
wangxiaoxuan273:pretty
Apr 19, 2024
Merged

fix: return error when --format and --pretty are both used#1359
qweeah merged 4 commits into
oras-project:mainfrom
wangxiaoxuan273:pretty

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Apr 18, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
return error when --format and --pretty are both used for oras manifest fetch. Need to rebase after #1354 is merged.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1356

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@codecov

codecov Bot commented Apr 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.71%. Comparing base (23e243b) to head (03b3c9d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1359   +/-   ##
=======================================
  Coverage   84.70%   84.71%           
=======================================
  Files         104      104           
  Lines        3687     3689    +2     
=======================================
+ Hits         3123     3125    +2     
  Misses        336      336           
  Partials      228      228           

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

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

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 22bbd58 into oras-project:main Apr 19, 2024
@wangxiaoxuan273 wangxiaoxuan273 deleted the pretty branch April 19, 2024 02:42
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
…ect#1359)

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
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.

--format and --pretty should not be used at the same time for oras manifest fetch

2 participants