From 1a6f1f3f2c4daf0545da15c2cfe8b230f3a8d9bf Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 18 May 2026 21:56:50 -0400 Subject: [PATCH] feat(deps): add status symbols to fish-deps status output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Installed deps show a green ✓. Missing required/integration deps show a red ✗. Missing recommended deps show a yellow ⚠ since they are optional, distinguishing severity at a glance. --- functions/_fish_deps_status.fish | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/functions/_fish_deps_status.fish b/functions/_fish_deps_status.fish index 8997122..1ca1a99 100644 --- a/functions/_fish_deps_status.fish +++ b/functions/_fish_deps_status.fish @@ -5,13 +5,17 @@ function _fish_deps_status _fish_deps_catalog - function __fds_print_dep --argument-names bin + function __fds_print_dep --argument-names bin tier if type -q $bin - set_color green; echo -n " "; set_color normal + set_color green; echo -n " ✓ "; set_color normal echo -n "$bin " set_color brblack; echo "(Found at "(type -p $bin)")"; set_color normal + else if test "$tier" = rec + set_color yellow; echo -n " ⚠ "; set_color normal + echo -n "$bin " + set_color brblack; echo "(Not installed)"; set_color normal else - set_color red; echo -n " "; set_color normal + set_color red; echo -n " ✗ "; set_color normal echo -n "$bin " set_color brblack; echo "(Not installed)"; set_color normal end @@ -24,7 +28,7 @@ function _fish_deps_status set -l i 1 for bin in $_fdc_bins if test "$_fdc_tiers[$i]" = $tier - __fds_print_dep $bin + __fds_print_dep $bin $tier end set i (math $i + 1) end