2020-05-10 01:38:07 +03:00
|
|
|
@mesg '------------status------------'
|
|
|
|
|
2020-05-09 08:48:35 +03:00
|
|
|
function _status
|
2020-06-06 21:57:43 +03:00
|
|
|
set -g _tide_last_pipestatus $pipestatus
|
|
|
|
set -g _tide_last_status $status
|
2020-05-22 00:58:09 +03:00
|
|
|
_tide_decolor (_tide_item_status)
|
2020-05-06 19:42:52 +03:00
|
|
|
end
|
|
|
|
|
2020-05-09 08:48:35 +03:00
|
|
|
@test 'true' (true; _status) -z
|
|
|
|
@test 'false' (false; _status) -z
|
2020-05-19 06:03:25 +03:00
|
|
|
@test 'true|false' (true|false; _status) = "$tide_status_failure_icon 0|1 "
|
2020-05-09 08:48:35 +03:00
|
|
|
@test 'true|true' (true|true; _status) -z
|
2020-05-19 06:03:25 +03:00
|
|
|
@test 'false|true' (false|true; _status) = "$tide_status_success_icon 1|0 "
|
|
|
|
@test 'false|false' (false|false; _status) = "$tide_status_failure_icon 1|1 "
|