mirror of
https://github.com/zunit-zsh/zunit.git
synced 2026-09-10 06:36:15 -04:00
commit
d78c1bbe60
15
zunit
15
zunit
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
||||
###
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue