refactor: use __fish_palette in system and package functions
44 duplicated declarations replaced by 8 calls. Output strings untouched. fish-deps, upgrade and wake-lock have no --help path and are deliberately NOT added to the harness case list -- upgrade and wake-lock have side effects, and runtime coverage is not worth mutating state during tests. They are covered by --structural, which proves mechanically that no rendering line changed.
This commit is contained in:
+1
-8
@@ -46,14 +46,7 @@ function pkg --description 'Install or remove packages via the system package ma
|
||||
end
|
||||
|
||||
# ── Colour palette ───────────────────────────────────────────
|
||||
set -l c_head (set_color --bold cyan)
|
||||
set -l c_cmd (set_color --bold)
|
||||
set -l c_flag (set_color yellow)
|
||||
set -l c_ok (set_color green)
|
||||
set -l c_warn (set_color yellow)
|
||||
set -l c_err (set_color red)
|
||||
set -l c_dim (set_color brblack)
|
||||
set -l c_reset (set_color normal)
|
||||
__fish_palette
|
||||
|
||||
# ── Installed-check helper ───────────────────────────────────
|
||||
# Uses only its own arguments — safe to define as an inner function.
|
||||
|
||||
Reference in New Issue
Block a user