You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched the issue queue to verify this is not a duplicate bug report.
I've included steps to reproduce the bug.
I've pasted the output of kargo version.
I've pasted logs, if applicable.
Description
The Kargo CLI command kargo version doesn't return the version of the CLI if there is no connection to the server. This comes up for me when there is a "stale" connection still cached.
Example
$ kargo version
Error: get client from config: error refreshing token: your token is expired; please use `kargo login` to re-authenticate
$ rm -rf ~/.config/kargo
$ kargo version
Client Version: v0.4.0
Steps to Reproduce
Have a "stale" login creds under ~/.config/kargo
Download Kargo CLI v0.4.0
Run kargo version
Version
Client Version: v0.4.0
Enhancement Proposal
There should be a --client option that just displays the version of the cli, bypassing the server version check.
Example
$ kargo version
Error: get client from config: error refreshing token: your token is expired; please use `kargo login` to re-authenticate
$ kargo version --client
Client Version: v0.4.0
The text was updated successfully, but these errors were encountered:
Agree. And besides that, when --client isn't specified, we should print CLI version info before handling any connection errors so that you at least see part of what you were looking for.
@hiddeco would you be willing to take this as another "warm up?" If so, know that there's an open issue for a more comprehensive CLI overhaul, so don't worry about making this perfect. Just make it work.
Checklist
kargo version
.Description
The Kargo CLI command
kargo version
doesn't return the version of the CLI if there is no connection to the server. This comes up for me when there is a "stale" connection still cached.Example
Steps to Reproduce
~/.config/kargo
kargo version
Version
Enhancement Proposal
There should be a
--client
option that just displays the version of the cli, bypassing the server version check.Example
The text was updated successfully, but these errors were encountered: