Skip to content

Commit

Permalink
Merge pull request #44 from molovo/version-0.5.x
Browse files Browse the repository at this point in the history
v0.5.1
  • Loading branch information
James Dinsdale authored Feb 20, 2017
2 parents da51c63 + f91799d commit d78c1bb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion zunit
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,12 @@ function _zunit_run() {
local fail_fast tap allow_risky
local output_text logfile_text output_html logfile_html

# Print version information
echo $(color yellow 'Launching ZUnit')
echo "ZUnit: $(_zunit_version)"
echo "ZSH: $(zsh --version)"
echo

zmodload zsh/datetime
local start_time=$((EPOCHREALTIME*1000)) end_time

Expand Down Expand Up @@ -1204,6 +1210,13 @@ function _zunit_run() {
[[ $(( $passed + $skipped )) -eq $total ]]
}

###
# Output the version number
###
function _zunit_version() {
echo '0.5.1'
}

###
# The main zunit process
###
Expand Down Expand Up @@ -1246,7 +1259,7 @@ function _zunit() {
# If the version option is passed,
# output version information and exit
if [[ -n $version ]]; then
echo '0.5.0'
_zunit_version
exit 0
fi

Expand Down

0 comments on commit d78c1bb

Please sign in to comment.