Open ia3andy opened 1 year ago
/cc @ebullient (cli), @maxandersen (cli,jbang), @quarkusio/devtools (jbang)
'quarkus version --update' ?
Though this is non trivial as you can't self-update easily on all platforms and/or install systems.
Can always print instructions based on best guess on how it's installed.
Copying a comment from #33708, echoing something from @maxandersen's comment above. The "best guess about how it's installed" is an important value add.
"Before I can work out how to perform an update, I need to know how I installed this tool in the first place. The docs don't help me know what I might have done, so my only option is to do forensics on my install to look for fingerprints of a package manager and do the appropriate update command. If I guess the wrong package manager, I may end up with two instances of quarkus on my path, and still be using the stale one."
Description
It would be nice to have a way to self update the Quarkus CLI version.
in yarn they call it
self-update
in brew they call itupdate
but that is confusing IMOmaybe
quarkus update-cli
?Implementation ideas
We could detect the way it was installed (jbang, ...) and handle a few of them and redirect to the guide if it's not handled.