hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Command to display the script's version #60

Closed jmMeessen closed 6 years ago

jmMeessen commented 8 years ago

In my opinion, a command should be available (ex: --version or -v) to display the version of the script.

StefanScherer commented 8 years ago

@jmMeessen Great idea. I'll remove the -v option from the --verbose and display the version instead.

I thought how to maintain that version string in both scripts, and still support pull requests from the community.

StefanScherer commented 6 years ago

As we now have a small CI pipeline on Circle + Travis we could think of automating this and make releases with version numbers ;-)

StefanScherer commented 6 years ago

Finally, you can run flash --version.

Download latest release with

curl -LO https://github.com/hypriot/flash/releases/download/2.1.0/flash
chmod +x flash
sudo mv flash /usr/local/bin/flash