Skip to content

chore: Add complicated blob fetch example from docs - #1396

Closed
TerryHowe wants to merge 1 commit into
oras-project:mainfrom
TerryHowe:add-blob-fetch-example
Closed

TerryHowe wants to merge 1 commit into
oras-project:mainfrom
TerryHowe:add-blob-fetch-example

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

This example was in the docs, but not in the CLI

@codecov

codecov Bot commented May 29, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.08%. Comparing base (9ff316c) to head (af55bd5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1396      +/-   ##
==========================================
+ Coverage   85.07%   85.08%   +0.01%     
==========================================
  Files         107      107              
  Lines        3805     3809       +4     
==========================================
+ Hits         3237     3241       +4     
  Misses        339      339              
  Partials      229      229              

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

Example - Fetch and print a blob from OCI image layout archive file 'layout.tar':
oras blob fetch --oci-layout --output - layout.tar@sha256:9a201d228ebd966211f7d1131be19f152be428bd373a92071c71d8deaf83b3e5

Example - Fetch a blob with a specific reference, determine its size using 'jq', and use 'pv' to display the progress while redirecting the output to a file named 'layer.bin':

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.

Do we still need it since blob fetch has already supported progress bar natively in v1.2.0?

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.

No. You are right that v1.2.0 supports showing progress.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sounds good

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.

3 participants