Minor edits

This commit is contained in:
Ilan Cosman 2020-09-23 13:56:08 -07:00
parent 8d5a2a717c
commit 549080c455
2 changed files with 6 additions and 13 deletions

View File

@ -3,22 +3,19 @@ function _tide_sub_test
if set -q _flag_help
_tide_test_help
return
end
if set -q _flag_install
return 0
else if set -q _flag_install
# Install fisher and spout for testing
curl git.io/fisher --create-dirs -sLo $__fish_config_dir/functions/fisher.fish
fisher add IlanCosman/spout
return
return 0
end
if not functions -q spout
set -l b (set_color -o; or echo)
set -l n (set_color normal; or echo)
printf '%s\n' $b'spout'$n' must be installed to to run Tide\'s test suite. You can install it with'$b' tide test -i'$n
return
return 1
end
set -lx TERM xterm # Necessary for testing purposes, ensures color codes are printed

View File

@ -5,14 +5,10 @@ function tide
if set -q _flag_version
printf '%s\n' "tide, version $_tide_version"
return 0
end
if set -q _flag_help
else if set -q _flag_help
_tide_help
return 0
end
if functions --query _tide_sub_$subcommand
else if functions --query _tide_sub_$subcommand
_tide_sub_$subcommand $argv[2..-1]
else
_tide_help