Skip to content

Add status output to show the command execution result #1575

Open

Description

@FeynmanZhou

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

An image index has been created and pushed to layout-dir:v1 

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 output to show the final execution result.

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

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    and removed
    triage
    on Dec 9, 2024
  2. added this to the v1.3.0-beta.2 milestone on Dec 9, 2024
  3. Wwwsylvia commented on Jan 15, 2025

    @Wwwsylvia
    Member

    @FeynmanZhou The format of the current output and the expected output in the description looks identical.

  4. added
    question
    on Jan 15, 2025
  5. FeynmanZhou commented on Jan 16, 2025

    @FeynmanZhou
    MemberAuthor

    @Wwwsylvia Apologize for missing the execution result in the expected output. I have appended to the issue description above.

  6. removed
    question
    on Jan 16, 2025
  7. Horiodino commented on Jan 16, 2025

    @Horiodino
    Contributor

    Hey, I’d be happy to take this on from now if no one else is working on it. Let me know

  8. shizhMSFT commented on Jan 21, 2025

    @shizhMSFT
    Contributor

    It is not categorized as status output. Precisely, it is metadata output in the format of text.

  9. added
    spec required
    on Jan 21, 2025
  10. Wwwsylvia commented on Jan 21, 2025

    @Wwwsylvia
    Member

    Hi @Horiodino , thank you for showing the interests. We are still sorting out the requirement, will keep this thread updated.

  11. sajayantony commented on Jan 22, 2025

    @sajayantony
    Contributor

    Might be better to output "Index" instead of "Image Index"

    Updated since the image spec actually does call it Image Index.
    If the proposal is to add it to all commands then it would be good to make sure all commands have some structure.
    For e.g. {Type} {Action} {performed in} {destination}

  12. modified the milestones: v1.3.0, v1.4.0 on Jun 11, 2025
  13. modified the milestones: v1.4.0, v1.5.0 on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementspec required

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions