Skip to content

feature request: add oras list for listing repositories or tags #634

Closed

Description

@qweeah

What would you like to be added?

A new command list, aliased as ls, which takes a registry host name or a host name with repository path and ouput a list according as below:

oras list localhost:5000 # show repositories in localhost:5000
oras list localhost:5000/my-repo # show tags in my-repo

Why is this needed? Please describe your user story or scenario.

This unified command will simplify user experience of fuzzy searching a image for ORAS end users.

Suppose I need to find some images for k8s eraser, I need to run

oras repo ls mcr.microsoft.com | grep eraser
oras repo tags mcr.microsoft.com/oss/eraser/eraser

The second command requires changing the subcommand from ls to tags and it's very likely to be missed (at least for me).

With oras list(ls), after I get the result from first command, I only need to push the up arrow button and paste in the repository name I got from first comand:

oras ls mcr.microsoft.com | grep eraser
oras ls mcr.microsoft.com/oss/eraser/eraser

Activity

  1. added
    ux
    on Oct 9, 2022
  2. self-assigned this
    on Oct 9, 2022
  3. changed the title [-]feature request: add `oras list` for listing repositories and tags[/-] [+]feature request: add `oras list` for listing repositories or tags[/+] on Oct 9, 2022
  4. added this to the v1.0.0 milestone on Oct 9, 2022
  5. removed their assignment
    on Oct 9, 2022
  6. sajayantony commented on Oct 19, 2022

    @sajayantony
    Contributor

    +1 I would also like to push for making it just ls as the actual command and have list as the alias.

  7. modified the milestones: v1.0.0-rc.1, v1.0.0 on Jan 3, 2023
  8. modified the milestones: v1.0.0, v1.1.0 on Jan 4, 2023
  9. qweeah commented on Mar 22, 2023

    @qweeah
    ContributorAuthor

    Closing since oras repo ls can query repositories with certain prefix, making the UX of oras ls ambiguous. E.g. should oras ls reg.io/repo list out 1) repositories with repo as prefix, or 2) tags in repo?

  10. modified the milestones: v1.1.0, future on Jul 5, 2023
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

    ux

    Type

    No type

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions