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: Empty output in project view cmd #304

Open
rizul2108 opened this issue Jan 5, 2025 · 8 comments · May be fixed by #300
Open

Unexpected Behaviour: Empty output in project view cmd #304

rizul2108 opened this issue Jan 5, 2025 · 8 comments · May be fixed by #300
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rizul2108
Copy link
Contributor

The project view command does not give info on the particular project rather outputs an empty table like the one below

rizul@rizu:~/OSS/harbor-cli$ ./harbor-cli project view
┌───────────────────────────────────────────────────────────────────────────────────────┐
│  Project ID  Project Name  Access Level  Type          Repo Count    Creation Time    │
│ ───────────────────────────────────────────────────────────────────────────────────── │
│                                                                                       │
└───────────────────────────────────────────────────────────────────────────────────────┘
rizul@rizu:~/OSS/harbor-cli$ ./harbor-cli project view caoyx
┌───────────────────────────────────────────────────────────────────────────────────────┐
│  Project ID  Project Name  Access Level  Type          Repo Count    Creation Time    │
│ ───────────────────────────────────────────────────────────────────────────────────── │
│                                                                                       │
└───────────────────────────────────────────────────────────────────────────────────────┘
@bupd
Copy link
Contributor

bupd commented Jan 5, 2025

@rizul2108 please try logging in. with harbor-cli login

@bupd bupd added the question Further information is requested label Jan 5, 2025
@rizul2108
Copy link
Contributor Author

rizul2108 commented Jan 5, 2025

Yeah I tried after logging in only still the table is empty

@bupd
Copy link
Contributor

bupd commented Jan 5, 2025

@rizul2108 try with demo.goharbor.io with username harbor-cli and password as Harbor12345

@rizul2108
Copy link
Contributor Author

yes i am trying with that only and i found that if i give the output-format flag then the output is correct but if i do not give the output-format it does not give output correctly

FormatFlag := viper.GetString("output-format")

i am talking about above flag

@rizul2108
Copy link
Contributor Author

maybe there is some error in formatting the table in viewProjects function i am working on that

@bupd
Copy link
Contributor

bupd commented Jan 5, 2025

Yes, this seems to be a bug.

Thanks

@bupd bupd added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed and removed question Further information is requested labels Jan 5, 2025
@Standing-Man
Copy link
Contributor

Hi @bupd and @rizul2108, I apologize for forgetting to create an issue earlier. I have addressed this problem in PR #300 I suspect it is caused by an update to the bubbletea.

@rizul2108
Copy link
Contributor Author

oh yes thank you @Standing-Man

@Standing-Man Standing-Man linked a pull request Jan 7, 2025 that will close 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 help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants