app-services-cli
app-services-cli copied to clipboard
An update while running rhoas version command prints older version
If the CLI gets updated while rhoas version command is being run, the older version gets printed.
Log
rhoas version
? RHOAS CLI can be updated to 0.42.0.
Do you want to update now?
NOTE: You might need to run command as root to update RHOAS CLI binary.
Yes
RHOAS CLI updated to version 0.42.0
rhoas version 0.41.1
➜ ~ rhoas version
rhoas version 0.42.0
One idea can be not to run the command after the update is done, this will allow the user to then run the correct version of the CLI the next time. Investigate with other CLIs in how they handle this.