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

improve error message when user mistakenly uses tag list command #1210

Closed
Tracked by #1218
qweeah opened this issue Dec 26, 2023 · 0 comments · Fixed by #1219
Closed
Tracked by #1218

improve error message when user mistakenly uses tag list command #1210

qweeah opened this issue Dec 26, 2023 · 0 comments · Fixed by #1219
Assignees
Labels
ux User experience related
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Dec 26, 2023

Current behavior and output:

$ oras tag list ghcr.io/oras-project/oras
Error: unable to add tag for 'list': invalid reference: missing repository

Suggested error message:

$ oras tag list ghcr.io/oras-project/oras
Error: There is no "list" sub-command for "oras tag" command
Usage: oras tag [flags] <name>{:<tag>|@<digest>} <new_tag> [...]
If you want to list available tags in a repository, use "oras repo tags" 
@qweeah qweeah added the ux User experience related label Dec 26, 2023
@qweeah qweeah added this to the v1.2.0 milestone Dec 26, 2023
@qweeah qweeah self-assigned this Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux User experience related
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant