Skip to content

Commit d78c1bb

Browse files
author
James Dinsdale
authored
Merge pull request #44 from molovo/version-0.5.x
v0.5.1
2 parents da51c63 + f91799d commit d78c1bb

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

zunit

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,12 @@ function _zunit_run() {
11121112
local fail_fast tap allow_risky
11131113
local output_text logfile_text output_html logfile_html
11141114

1115+
# Print version information
1116+
echo $(color yellow 'Launching ZUnit')
1117+
echo "ZUnit: $(_zunit_version)"
1118+
echo "ZSH: $(zsh --version)"
1119+
echo
1120+
11151121
zmodload zsh/datetime
11161122
local start_time=$((EPOCHREALTIME*1000)) end_time
11171123

@@ -1204,6 +1210,13 @@ function _zunit_run() {
12041210
[[ $(( $passed + $skipped )) -eq $total ]]
12051211
}
12061212

1213+
###
1214+
# Output the version number
1215+
###
1216+
function _zunit_version() {
1217+
echo '0.5.1'
1218+
}
1219+
12071220
###
12081221
# The main zunit process
12091222
###
@@ -1246,7 +1259,7 @@ function _zunit() {
12461259
# If the version option is passed,
12471260
# output version information and exit
12481261
if [[ -n $version ]]; then
1249-
echo '0.5.0'
1262+
_zunit_version
12501263
exit 0
12511264
fi
12521265

0 commit comments

Comments
 (0)