lucasmotta / dploy

⛔️ currently unmaintained ⛔️
http://lucasmotta.github.io/dploy/
MIT License
990 stars 90 forks source link

Add -v flag to log version to the console. #36

Closed CWSpear closed 10 years ago

CWSpear commented 10 years ago

I learned the proper way to create pull requests, haha. I figured I'd recreate a pull request with just the version thing in it, as that's non-obtrusive and something I'd really like to see. It would help people debug cuz they would know what version they are on, and it's convenient, and pretty much expected, etc, etc.

It grabs the version from package.json, so you don't have to remember to increment the version # anywhere else.

Usage:

> dploy -v
v1.1.4

or

> dploy --version
v1.1.4