mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-23 17:02:24 +03:00
Clear prompt before printing
This commit is contained in:
parent
d4bc14578b
commit
c794140008
@ -2,6 +2,7 @@ function _tide_prompt
|
||||
test "$tide_print_newline_before_prompt" = 'true' && printf '%b' '\n'
|
||||
|
||||
set_color $tide_prompt_connection_color
|
||||
test -z "$tide_prompt_connection_icon" && set -l tide_prompt_connection_icon ' '
|
||||
string repeat --no-newline --max $COLUMNS $tide_prompt_connection_icon
|
||||
printf '%b' '\r'
|
||||
|
||||
|
@ -8,9 +8,7 @@ function _tide_sub_test
|
||||
# Install fisher, spout, and clownfish for testing
|
||||
fisher install IlanCosman/spout IlanCosman/clownfish
|
||||
return 0
|
||||
end
|
||||
|
||||
if not functions --query spout mock
|
||||
else if not functions --query spout mock
|
||||
set -l b (set_color -o; or echo)
|
||||
set -l n (set_color normal; or echo)
|
||||
printf '%s\n' $b'spout'$n' and'$b' clownfish'$n' must be installed to to run Tide\'s test suite. You can install them with'$b' tide test -i'$n
|
||||
@ -21,10 +19,6 @@ function _tide_sub_test
|
||||
|
||||
set -l testsDir "$_tide_dir/tests"
|
||||
|
||||
set -l pending (mktemp -u)
|
||||
set -l failed (mktemp -u)
|
||||
set -l passed (mktemp -u)
|
||||
|
||||
set -q _flag_all && set argv (basename -s '.fish' $testsDir/*.fish)
|
||||
set -q _flag_CI && set -a argv 'CI/'(basename -s '.fish' $testsDir/CI/*.fish)
|
||||
|
||||
@ -35,6 +29,10 @@ function _tide_sub_test
|
||||
|
||||
sudo --validate # Cache sudo credentials
|
||||
|
||||
set -l pending (mktemp -u)
|
||||
set -l failed (mktemp -u)
|
||||
set -l passed (mktemp -u)
|
||||
|
||||
for test in $argv
|
||||
if spout "$testsDir/$test.fish" >$pending
|
||||
if set -q _flag_verbose
|
||||
|
Loading…
Reference in New Issue
Block a user