This PR adds the update command and --just-do-it flags. When run, reco update finds the version number of the latest release on github. It then downloads this release for your platform and performs an in-place upgrade. The --just-do-it flag skips the 'would you like to upgrade?' question.
$ reco update
You are using reco v0.4.4-6-g8dee5f8-dirty
The latest release is reco v0.4.4
Would you like to upgrade? (Y/N)
Y
Self-update successful
$ reco update --just-do-it
You are using reco v0.4.4-6-g8dee5f8-dirty
The latest release is reco v0.4.4
Self-update successful
This PR adds the
update
command and--just-do-it
flags. When run,reco update
finds the version number of the latest release on github. It then downloads this release for your platform and performs an in-place upgrade. The--just-do-it
flag skips the 'would you like to upgrade?' question.