Skip to content

show annotations by default for oras discover --format tree #1534

Closed

Description

@Wwwsylvia

As per the ORAS diagnose experience proposal, we should add a new --format tree-full flag for oras discover to control the detailed metadata output, such as printing the annotations.
Once we have a way to print the detailed metadata output, we can mark the --verbose flag as deprecated.

- Deprecate the `--verbose` flag and keep `--debug` flag to avoid ambiguity. It is reasonable to continue using `--debug` to enable the output of `DEBUG` level logs as it is in ORAS. Meanwhile, this change will make the diagnose experience much more straightforward and less breaking since only ORAS `pull/push/attach/discover` commands have verbose output.
- Make the verbose output of commands `pull`, `push`, `attach` as the default (status) output. See examples at the bottom.
- Make the verbose output of command `discover` as a formatted output, controlled by `--format tree-full`.

Activity

  1. added this to the v1.3.0 milestone on Nov 22, 2024
  2. added
    enhancement
    on Nov 22, 2024
  3. Horiodino commented on Jan 1, 2025

    @Horiodino
    Contributor

    Hi, I’m interested in working on this. If no one else is currently assigned, would it be alright if I take it on?

  4. Wwwsylvia commented on Jan 2, 2025

    @Wwwsylvia
    MemberAuthor

    Hi @Horiodino , thank you for volunteering! Sure please feel free to create a PR and let us know if anything is unclear.

    Just a note: In #1558 we deprecated the --verbose flag for other commands but oras discover. It's time to apply the same for oras discover as well when we add --format tree-full to it.

  5. sajayantony commented on Jan 8, 2025

    @sajayantony
    Contributor

    Really nice to see this coming together. Given that the discover was done before the OCI specification was finalized, it might be good to actually show the annotations in the default output. This aligns well with the API.

    Annotations are the main way for a user to consume the output since IMHO the set of digests alone might not usable besides giving an indication.

    Basically my vote would be to avoid a tree-full option and just make this the default output as its more usable.
    i’m also considering the fact that that we are trying to have lesser options verbose|debug.

  6. Horiodino commented on Jan 8, 2025

    @Horiodino
    Contributor

    ok 👍 i will apply the changes

  7. Wwwsylvia commented on Jan 10, 2025

    @Wwwsylvia
    MemberAuthor

    When there are multiple referrers with the same artifact type, annotations can be helpful in distinguishing the referrers, however the way we display it does look overwhelming.

    Here is an experiment I did:

    oras discover output without annotations:

    $ oras discover localhost:5000/testdiscover2501101:v1
    
    localhost:5000/testdiscover2501101@sha256:495d9251cdd4ba2a744bcbb960d70ee67ee242e816ff35a451da9981ca4a3ab3
    ├── test/sbom
    │   ├── sha256:600faa0d8129d59d637cac3b83103ead73893c5267020c22e634e68bbbe71e5f
    │   │   ├── application/vnd.cncf.notary.signature
    │   │   │   └── sha256:e198c5a2b6275b4e06d6efc40ce5c147cdcfc3d1bb6de626abf4d5b1ed2332a7
    │   │   └── test/nested
    │   │       └── sha256:14f8e26f838b03e7da1ef7512c2f0f0d1f081d9eef2be25652d1706e9c2ca0a5
    │   └── sha256:b65067555c873544d4bf35d74fb9c43b3eee0b3875779954efea596e2b1b4600
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:90620e18d94f29fd2897fad3cee09f237a5e9c7047eb49c61adf2183f3cd3769
    ├── application/vnd.cncf.notary.signature
    │   └── sha256:6707a13b21ac9a133a25bd65656a809b078d0f961eb3a3a630ad49faf09369be
    └── test/discover
        └── sha256:6efa99819a5b3ffc6fb51b8cd48efbc71b5f63e1864bcd1a62485ff8dd8bded4
    

    oras discover output with annotations:

    $ oras discover localhost:5000/testdiscover2501101:v1 -v
    
    localhost:5000/testdiscover2501101@sha256:495d9251cdd4ba2a744bcbb960d70ee67ee242e816ff35a451da9981ca4a3ab3
    ├── test/sbom
    │   ├── sha256:600faa0d8129d59d637cac3b83103ead73893c5267020c22e634e68bbbe71e5f
    │   │   ├── org.opencontainers.image.created: "2025-01-10T07:32:43Z"
    │   │   ├── application/vnd.cncf.notary.signature
    │   │   │   └── sha256:e198c5a2b6275b4e06d6efc40ce5c147cdcfc3d1bb6de626abf4d5b1ed2332a7
    │   │   │       ├── io.cncf.notary.x509chain.thumbprint#S256: '["37fca476dc777649d80b5337bfbc79aa2d083454918cf0658a9956c8054a8b77"]'
    │   │   │       └── org.opencontainers.image.created: "2025-01-10T07:33:53Z"
    │   │   └── test/nested
    │   │       └── sha256:14f8e26f838b03e7da1ef7512c2f0f0d1f081d9eef2be25652d1706e9c2ca0a5
    │   │           └── org.opencontainers.image.created: "2025-01-10T07:36:39Z"
    │   └── sha256:b65067555c873544d4bf35d74fb9c43b3eee0b3875779954efea596e2b1b4600
    │       ├── org.opencontainers.image.created: "2025-01-10T07:34:18Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:90620e18d94f29fd2897fad3cee09f237a5e9c7047eb49c61adf2183f3cd3769
    │               ├── io.cncf.notary.x509chain.thumbprint#S256: '["37fca476dc777649d80b5337bfbc79aa2d083454918cf0658a9956c8054a8b77"]'
    │               └── org.opencontainers.image.created: "2025-01-10T07:35:02Z"
    ├── application/vnd.cncf.notary.signature
    │   └── sha256:6707a13b21ac9a133a25bd65656a809b078d0f961eb3a3a630ad49faf09369be
    │       ├── io.cncf.notary.x509chain.thumbprint#S256: '["37fca476dc777649d80b5337bfbc79aa2d083454918cf0658a9956c8054a8b77"]'
    │       └── org.opencontainers.image.created: "2025-01-10T07:35:50Z"
    └── test/discover
        └── sha256:6efa99819a5b3ffc6fb51b8cd48efbc71b5f63e1864bcd1a62485ff8dd8bded4
            └── org.opencontainers.image.created: "2025-01-10T07:37:03Z"
    

    oras discover output in table format:

    $ oras discover localhost:5000/testdiscover2501101:v1 --format table
    
    Discovered 4 artifacts referencing localhost:5000/testdiscover2501101:v1
    Digest: sha256:495d9251cdd4ba2a744bcbb960d70ee67ee242e816ff35a451da9981ca4a3ab3
    
    Artifact Type                           Digest
    test/sbom                               sha256:600faa0d8129d59d637cac3b83103ead73893c5267020c22e634e68bbbe71e5f
    test/sbom                               sha256:b65067555c873544d4bf35d74fb9c43b3eee0b3875779954efea596e2b1b4600
    application/vnd.cncf.notary.signature   sha256:6707a13b21ac9a133a25bd65656a809b078d0f961eb3a3a630ad49faf09369be
    test/discover                           sha256:6efa99819a5b3ffc6fb51b8cd48efbc71b5f63e1864bcd1a62485ff8dd8bded4
    
  8. FeynmanZhou commented on Jan 10, 2025

    @FeynmanZhou
    Member

    Really nice to see this coming together. Given that the discover was done before the OCI specification was finalized, it might be good to actually show the annotations in the default output. This aligns well with the API.

    Annotations are the main way for a user to consume the output since IMHO the set of digests alone might not usable besides giving an indication.

    Basically my vote would be to avoid a tree-full option and just make this the default output as its more usable. i’m also considering the fact that that we are trying to have lesser options verbose|debug.

    @sajayantony

    The referrers' annotations are useful metadata for users. However, I have concerns on showing referrers' annotations recursively in the default output may complicate the tree hierarchy, especially when there are multiple referrers and each has a bunch of annotations. The reference graph relationship between the root image and referrers will be hard to recognized. Just as the example output shared by @Wwwsylvia above.

    From the user's point of view, the purpose of querying a tree view is to list a tree of the referrers and show their dependency hierarchy. Annotations are supposed to be printed only when users want to dig into the detailed metadata of each referrer.

    Considering annotation is a key-value format, I would suggest showing annotations metadata in a JSON or table format. This will provide a better user experience to the formatted output.

  9. added
    question
    on Jan 15, 2025
  10. added
    spec required
    on Jan 21, 2025
  11. shizhMSFT commented on Jan 21, 2025

    @shizhMSFT
    Contributor

    I would suggest refine the output of --format tree by merging --format tree-full into --format tree.

    The problem of the --format tree-full is that the annotations are mixed with the artifact type of the referrers. Those annotations should share the same root node under the subject node.

  12. 1 remaining item

  13. shizhMSFT commented on Jan 22, 2025

    @shizhMSFT
    Contributor

    @Wwwsylvia Instead of putting special marks, I'm thinking about using different colors via TTY.

  14. Horiodino commented on Jan 26, 2025

    @Horiodino
    Contributor

    Could someone please give a final review so we can make the necessary changes? Everyone seems to have different opinions.

  15. FeynmanZhou commented on Feb 18, 2025

    @FeynmanZhou
    Member

    I would suggest refine the output of --format tree by merging --format tree-full into --format tree.
    The problem of the --format tree-full is that the annotations are mixed with the artifact type of the referrers. Those annotations should share the same root node under the subject node

    @shizhMSFT @FeynmanZhou

    Just brainstorming - How about formatting the tree view to something like this:

    localhost:5000/testdiscover2501101@sha256:495d9251cdd4ba2a744bcbb960d70ee67ee242e816ff35a451da9981ca4a3ab3
    ├── <test/sbom>
    │   ├── sha256:600faa0d8129d59d637cac3b83103ead73893c5267020c22e634e68bbbe71e5f
    │   │   ├── annotations:
    │   │   │       * org.opencontainers.image.created: "2025-01-10T07:32:43Z"
    │   │   ├── <application/vnd.cncf.notary.signature>
    │   │   │   └── sha256:e198c5a2b6275b4e06d6efc40ce5c147cdcfc3d1bb6de626abf4d5b1ed2332a7
    │   │   │       └── annotations:
    │   │   │               * io.cncf.notary.x509chain.thumbprint#S256: '["37fca476dc777649d80b5337bfbc79aa2d083454918cf0658a9956c8054a8b77"]'
    │   │   │               * org.opencontainers.image.created: "2025-01-10T07:33:53Z"
    │   │   └── <test/nested>
    │   │       └── sha256:14f8e26f838b03e7da1ef7512c2f0f0d1f081d9eef2be25652d1706e9c2ca0a5
    │   │           └── annotations:
    │   │                   * org.opencontainers.image.created: "2025-01-10T07:36:39Z"
    │   ├── sha256:b65067555c873544d4bf35d74fb9c43b3eee0b3875779954efea596e2b1b4600
    │   │   ├── annotations:
    │   │   │       * org.opencontainers.image.created: "2025-01-10T07:34:18Z"
    │   │   └── <application/vnd.cncf.notary.signature>
    │   │       └── sha256:90620e18d94f29fd2897fad3cee09f237a5e9c7047eb49c61adf2183f3cd3769
    │   │           └── annotations:
    │   │                   * io.cncf.notary.x509chain.thumbprint#S256: '["37fca476dc777649d80b5337bfbc79aa2d083454918cf0658a9956c8054a8b77"]'
    │   │                   * org.opencontainers.image.created: "2025-01-10T07:35:02Z"
    ├── <application/vnd.cncf.notary.signature>
    │   └── sha256:6707a13b21ac9a133a25bd65656a809b078d0f961eb3a3a630ad49faf09369be
    │       └── annotations:
    │               * io.cncf.notary.x509chain.thumbprint#S256: '["37fca476dc777649d80b5337bfbc79aa2d083454918cf0658a9956c8054a8b77"]'
    │               * org.opencontainers.image.created: "2025-01-10T07:35:50Z"
    └── <test/discover>
        └── sha256:6efa99819a5b3ffc6fb51b8cd48efbc71b5f63e1864bcd1a62485ff8dd8bded4
            └── annotations:
                    * org.opencontainers.image.created: "2025-01-10T07:37:03Z"
    

    The idea is to:

    1. Putting <> around the artifact type of the referrer
    2. Making annotations a separate node
    3. Use * mark to list the annotations

    This tree view looks much more straightforward to me, but the artifact reference hierarchy looks complicated when there is multiple referrers.

    If we want to output annotations of each referrer in the tree view, we may need to consider providing a flag to allow users to hide the annotations for a simple tree view, just like a silent mode.

    Using different colors via TTY sounds good for usability. Can we do a PoC to show its effect?

  16. yizha1 commented on Feb 19, 2025

    @yizha1

    Just to confirm the same data should be shown according to the format that users choose, right? So, although we are discussing tree view, but what is shown on tree view should be shown for Json format, right?

  17. shizhMSFT commented on Feb 20, 2025

    @shizhMSFT
    Contributor

    @Wwwsylvia @FeynmanZhou How about just making annotations a separate node with coloring?

    Image

    Again, with no color (--no-tty):

    $ oras discover --no-tty mcr.microsoft.com/oss/deislabs/ratify-base:v1.2.3
    mcr.microsoft.com/oss/deislabs/ratify-base@sha256:747e64865b0ec17018e50561714293a10cfd7faa6d9ca55218ce511c99960724
    ├── application/vnd.in-toto+json
    │   └── sha256:330f67e4d8e9db9ab47fc103aff2aa5755dd3a5d6aaa6b6e8dc78bb1d07d25b2
    │       ├── <annotations>
    │       │   └── org.opencontainers.image.created: "2025-01-28T03:46:25Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:6a99e0d2706731106749cf87eaa1bac804a606fcb3ae75e6d7b120aadae33ecb
    │               └── <annotations>
    │                   ├── io.cncf.notary.x509chain.thumbprint#S256: '[58b56ba9b4fe67646e45a882373a8eea761b5ea3182ee81f23151d6211a0f9b3,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │                   └── org.opencontainers.image.created: "2025-01-28T03:48:15Z"
    ├── application/spdx+json
    │   ├── sha256:773d87e71c7d7c585126b658dc29f8d3afca2646956afd9f538a567a829f4219
    │   │   ├── <annotations>
    │   │   │   └── org.opencontainers.image.created: "2025-01-28T03:44:11Z"
    │   │   └── application/vnd.cncf.notary.signature
    │   │       └── sha256:f7afd15611dc9bea17c2ee1813a56a2dbe96bd28ca8888881e3669474dc62667
    │   │           └── <annotations>
    │   │               ├── io.cncf.notary.x509chain.thumbprint#S256: '[58b56ba9b4fe67646e45a882373a8eea761b5ea3182ee81f23151d6211a0f9b3,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │   │               └── org.opencontainers.image.created: "2025-01-28T03:46:02Z"
    │   └── sha256:003ce017b2bf38b29baf80fc8e712143633be5b621a27b836482d9c238892f10
    │       ├── <annotations>
    │       │   └── org.opencontainers.image.created: "2025-01-28T03:44:10Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:087d4a575dd28d20773412ac631854e169676100130770e374b1da91f36ef957
    │               └── <annotations>
    │                   ├── io.cncf.notary.x509chain.thumbprint#S256: '[99f9dee8cba8cd8acb36f752b5cd085ba56a40dad1ca9d4eed0c3c10aaf8c7e5,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │                   └── org.opencontainers.image.created: "2025-01-28T03:46:00Z"
    └── application/vnd.cncf.notary.signature
        └── sha256:749c5528c82c13b0a18331b80a8ea5faa22551b36172f1d83ecef70584dfec5f
            └── <annotations>
                ├── io.cncf.notary.x509chain.thumbprint#S256: '[99f9dee8cba8cd8acb36f752b5cd085ba56a40dad1ca9d4eed0c3c10aaf8c7e5,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
                └── org.opencontainers.image.created: "2025-01-28T03:43:55Z"

    The new node is named <annotations> as we already have a <unknown> node defined for empty artifact type.

  18. Wwwsylvia commented on Feb 21, 2025

    @Wwwsylvia
    MemberAuthor

    @Wwwsylvia @FeynmanZhou How about just making annotations a separate node with coloring?

    Image

    Colors LGTM.

    The new node is named <annotations> as we already have a <unknown> node defined for empty artifact type.

    If <> has been occupied by node, how about [annotations] 😀?

    $ oras discover --no-tty mcr.microsoft.com/oss/deislabs/ratify-base:v1.2.3
    mcr.microsoft.com/oss/deislabs/ratify-base@sha256:747e64865b0ec17018e50561714293a10cfd7faa6d9ca55218ce511c99960724
    ├── application/vnd.in-toto+json
    │   └── sha256:330f67e4d8e9db9ab47fc103aff2aa5755dd3a5d6aaa6b6e8dc78bb1d07d25b2
    │       ├── [annotations]
    │       │   └── org.opencontainers.image.created: "2025-01-28T03:46:25Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:6a99e0d2706731106749cf87eaa1bac804a606fcb3ae75e6d7b120aadae33ecb
    │               └── [annotations]
    │                   ├── io.cncf.notary.x509chain.thumbprint#S256: '[58b56ba9b4fe67646e45a882373a8eea761b5ea3182ee81f23151d6211a0f9b3,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │                   └── org.opencontainers.image.created: "2025-01-28T03:48:15Z"
    ├── application/spdx+json
    │   ├── sha256:773d87e71c7d7c585126b658dc29f8d3afca2646956afd9f538a567a829f4219
    │   │   ├── [annotations]
    │   │   │   └── org.opencontainers.image.created: "2025-01-28T03:44:11Z"
    │   │   └── application/vnd.cncf.notary.signature
    │   │       └── sha256:f7afd15611dc9bea17c2ee1813a56a2dbe96bd28ca8888881e3669474dc62667
    │   │           └── [annotations]
    │   │               ├── io.cncf.notary.x509chain.thumbprint#S256: '[58b56ba9b4fe67646e45a882373a8eea761b5ea3182ee81f23151d6211a0f9b3,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │   │               └── org.opencontainers.image.created: "2025-01-28T03:46:02Z"
    │   └── sha256:003ce017b2bf38b29baf80fc8e712143633be5b621a27b836482d9c238892f10
    │       ├── [annotations]
    │       │   └── org.opencontainers.image.created: "2025-01-28T03:44:10Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:087d4a575dd28d20773412ac631854e169676100130770e374b1da91f36ef957
    │               └── [annotations]
    │                   ├── io.cncf.notary.x509chain.thumbprint#S256: '[99f9dee8cba8cd8acb36f752b5cd085ba56a40dad1ca9d4eed0c3c10aaf8c7e5,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │                   └── org.opencontainers.image.created: "2025-01-28T03:46:00Z"
    └── application/vnd.cncf.notary.signature
        └── sha256:749c5528c82c13b0a18331b80a8ea5faa22551b36172f1d83ecef70584dfec5f
            └── [annotations]
                ├── io.cncf.notary.x509chain.thumbprint#S256: '[99f9dee8cba8cd8acb36f752b5cd085ba56a40dad1ca9d4eed0c3c10aaf8c7e5,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
                └── org.opencontainers.image.created: "2025-01-28T03:43:55Z"
    
    
    
  19. Horiodino commented on Feb 21, 2025

    @Horiodino
    Contributor

    @Wwwsylvia @FeynmanZhou How about just making annotations a separate node with coloring?
    Image

    Colors LGTM.

    The new node is named <annotations> as we already have a <unknown> node defined for empty artifact type.

    If <> has been occupied by node, how about [annotations] 😀?

    $ oras discover --no-tty mcr.microsoft.com/oss/deislabs/ratify-base:v1.2.3
    mcr.microsoft.com/oss/deislabs/ratify-base@sha256:747e64865b0ec17018e50561714293a10cfd7faa6d9ca55218ce511c99960724
    ├── application/vnd.in-toto+json
    │   └── sha256:330f67e4d8e9db9ab47fc103aff2aa5755dd3a5d6aaa6b6e8dc78bb1d07d25b2
    │       ├── [annotations]
    │       │   └── org.opencontainers.image.created: "2025-01-28T03:46:25Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:6a99e0d2706731106749cf87eaa1bac804a606fcb3ae75e6d7b120aadae33ecb
    │               └── [annotations]
    │                   ├── io.cncf.notary.x509chain.thumbprint#S256: '[58b56ba9b4fe67646e45a882373a8eea761b5ea3182ee81f23151d6211a0f9b3,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │                   └── org.opencontainers.image.created: "2025-01-28T03:48:15Z"
    ├── application/spdx+json
    │   ├── sha256:773d87e71c7d7c585126b658dc29f8d3afca2646956afd9f538a567a829f4219
    │   │   ├── [annotations]
    │   │   │   └── org.opencontainers.image.created: "2025-01-28T03:44:11Z"
    │   │   └── application/vnd.cncf.notary.signature
    │   │       └── sha256:f7afd15611dc9bea17c2ee1813a56a2dbe96bd28ca8888881e3669474dc62667
    │   │           └── [annotations]
    │   │               ├── io.cncf.notary.x509chain.thumbprint#S256: '[58b56ba9b4fe67646e45a882373a8eea761b5ea3182ee81f23151d6211a0f9b3,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │   │               └── org.opencontainers.image.created: "2025-01-28T03:46:02Z"
    │   └── sha256:003ce017b2bf38b29baf80fc8e712143633be5b621a27b836482d9c238892f10
    │       ├── [annotations]
    │       │   └── org.opencontainers.image.created: "2025-01-28T03:44:10Z"
    │       └── application/vnd.cncf.notary.signature
    │           └── sha256:087d4a575dd28d20773412ac631854e169676100130770e374b1da91f36ef957
    │               └── [annotations]
    │                   ├── io.cncf.notary.x509chain.thumbprint#S256: '[99f9dee8cba8cd8acb36f752b5cd085ba56a40dad1ca9d4eed0c3c10aaf8c7e5,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
    │                   └── org.opencontainers.image.created: "2025-01-28T03:46:00Z"
    └── application/vnd.cncf.notary.signature
        └── sha256:749c5528c82c13b0a18331b80a8ea5faa22551b36172f1d83ecef70584dfec5f
            └── [annotations]
                ├── io.cncf.notary.x509chain.thumbprint#S256: '[99f9dee8cba8cd8acb36f752b5cd085ba56a40dad1ca9d4eed0c3c10aaf8c7e5,9b1894f223d934cbd6575af3c6e1f6096b9221a7da132185f5a5cdc92235b5dc,23ffe2b8bdb9a1711515d4cffda04bc7f793d513c76c243f1020507d8669b7db]'
                └── org.opencontainers.image.created: "2025-01-28T03:43:55Z"
    

    LGTM ,adding more flags is bad ux.

  20. shizhMSFT commented on Feb 24, 2025

    @shizhMSFT
    Contributor

    The proposal of [annotations] also LGTM.

  21. Wwwsylvia commented on Feb 24, 2025

    @Wwwsylvia
    MemberAuthor

    We should also fix the docs issue for the --no-tty flag: #1630

  22. FeynmanZhou commented on Feb 24, 2025

    @FeynmanZhou
    Member

    Colors look pretty cool and [annotations] LGTM, but showing [annotations] as a separate child node may not be the optimal solution. My only concern is that users might mistake [annotations] is a referrer. We need to document the design logics of tree view on oras.land.

  23. changed the title [-]Add a new `--format tree-full` flag for `oras discover`[/-] [+]show annotations by default for `oras discover --format tree`[/+] on Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementquestionspec required

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions