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

Unexpected Behaviour: Should not allow extra Args to project list #293

Open
bupd opened this issue Dec 28, 2024 · 1 comment
Open

Unexpected Behaviour: Should not allow extra Args to project list #293

bupd opened this issue Dec 28, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@bupd
Copy link
Member

bupd commented Dec 28, 2024

To Reproduce this error

Run harbor project list <anything>

Expected Behaviour

Run harbor project list <anything>

The above command should produce error as shown below.

❯ ./harbor-dev project list create
Error: accepts 0 arg(s), received 1

Current Behaviour

Run harbor project list <anything> works fine.

❯ ./harbor-dev project list create     #this should not work
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
│  ID      Project Name          Access Level  Type          Repo Count    Creation Time       │
│ ──────────────────────────────────────────────────────────────────────────────────────────── │
│  590     11aaaa                private       proxy cache   0             1 day ago           │
│  516     aaa                   public        project       3             15 day ago          │
│  523     af1-test              private       project       1             15 day ago          │
│  496     aloha-test            private       project       2             18 day ago          │

Note

Review all the commands that does not require args and set their arguments to 0. if they are not already specified.

@bupd bupd added bug Something isn't working good first issue Good for newcomers labels Dec 28, 2024
@bupd bupd added this to Harbor CLI Dec 28, 2024
@bupd bupd moved this to Backlog in Harbor CLI Dec 28, 2024
@shikharburman
Copy link

Hello, I would like to work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: Backlog
Development

No branches or pull requests

2 participants