app-services-cli icon indicating copy to clipboard operation
app-services-cli copied to clipboard

An update while running rhoas version command prints older version

Open rkpattnaik780 opened this issue 3 years ago • 1 comments

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

rkpattnaik780 avatar May 10 '22 06:05 rkpattnaik780

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.

jackdelahunt avatar Apr 03 '23 11:04 jackdelahunt