ReconfigureIO / reco

A command line tool for interacting with Reconfigure.io services
Apache License 2.0
6 stars 3 forks source link

Add update command to let reco self-update #17

Closed CampGareth closed 6 years ago

CampGareth commented 6 years ago

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