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

Add status output to show the command execution result #1575

Open
1 task
FeynmanZhou opened this issue Dec 9, 2024 · 0 comments
Open
1 task

Add status output to show the command execution result #1575

FeynmanZhou opened this issue Dec 9, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@FeynmanZhou
Copy link
Member

FeynmanZhou commented Dec 9, 2024

What is the version of your ORAS CLI

v1.2.0

What would you like to be added?

Suggest adding a standard status output at the end of all oras CLI output to show the final execution result.

It will be much more straightforward for users to understand which resource has been manipulated by ORAS and where it is.

For example, for oras manifest index create:

  • Current output
Fetching  v1-linux-amd64
Fetched   v1-linux-amd64
Fetching  v1-linux-arm64
Fetched   v1-linux-arm64
Packed    edb5bc1f0b5c application/vnd.oci.image.index.v1+json
Pushed    [oci-layout] layout-dir:v1
Digest: sha256:edb5bc1f0b5c21e9321b34e50c92beae739250fb88409056e8719d9759f6b5b4
  • Expected output:
$ oras manifest index create --oci-layout layout-dir:v1 v1-linux-amd64 v1-linux-arm64 --annotation "platform=multi-arch" 

Fetching  v1-linux-amd64
Fetched   v1-linux-amd64
Fetching  v1-linux-arm64
Fetched   v1-linux-arm64
Packed    edb5bc1f0b5c application/vnd.oci.image.index.v1+json
Pushed    [oci-layout] layout-dir:v1
Digest: sha256:edb5bc1f0b5c21e9321b34e50c92beae739250fb88409056e8719d9759f6b5b

Why is this needed for ORAS?

Improve usability of ORAS output, make the information much more intuitive to users.

Other client tools like docker has the similar status output to show command execution result.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.
@FeynmanZhou FeynmanZhou added enhancement New feature or request triage New issues or PRs to be acknowledged by maintainers and removed triage New issues or PRs to be acknowledged by maintainers labels Dec 9, 2024
@FeynmanZhou FeynmanZhou added this to the v1.3.0-beta.2 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant