File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments