azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
898 stars 63 forks source link

[Cli] Include git commit on azk version #614

Closed julio-saito-linx closed 8 years ago

julio-saito-linx commented 8 years ago

this closes #605

When we display azk version we do not have what exactly git commit version. This works well for released versions but for development azk version we need to know exactly what commit that we are running.

For this we will take the current commit being executed by git.

We also will include tests on spawn_helper and perhaps further improve the output of azk version

TODO:

# tests
azk gulp test --grep 'Azk cli, version'
azk gulp test --grep 'should _gitspawn_VersionAsync get real current git version'
azk gulp test --grep 'Spawn Helper'
azk gulp test --grep 'Git Helper'
azk gulp test --grep 'git version:'

# real world
rm -rf /tmp/azkdemo; azk start azukiapp/azkdemo /tmp/azkdemo --git-ref benchmark -vv; (cd /tmp/azkdemo; azk stop)