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

Add status command for getting current context of the CLI #343

Open
bupd opened this issue Mar 11, 2025 · 3 comments · May be fixed by #348
Open

Add status command for getting current context of the CLI #343

bupd opened this issue Mar 11, 2025 · 3 comments · May be fixed by #348

Comments

@bupd
Copy link
Collaborator

bupd commented Mar 11, 2025

Summary

Currently, we have no idea which user we logged in as and which registry we are connected to.

Given this we need something like

./harbor-cli status

Cli currently logged in as user_1 to registry demo.goharbor.io

Achieving the below output would be really better

./harbor-cli status

Harbor CLI Status:
==================
Logged in as: user_1
Registry: demo.goharbor.io
API Version: v2.0
Authentication: Token-based
Connected As: user_1 (admin)

Previously Logged in to the following registries:
- demo.goharbor.io 
- another-registry.io

CLI Version: 0.0.3
OS: Linux (x86_64)
@rizul2108
Copy link
Contributor

Can I work on this ? @bupd

@bupd
Copy link
Collaborator Author

bupd commented Mar 12, 2025

There is already a PR that could potentially have a partial fix. but we can take it from there. #275

@rizul2108
Copy link
Contributor

So should i wait for that PR to be merged?

@rizul2108 rizul2108 linked a pull request Mar 13, 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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants