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:
@@ -23,8 +23,7 @@
|
||||
function upgrade --description 'Full system upgrade via paru or yay'
|
||||
# Opinionated guard (C4): integrations disabled
|
||||
if not __fish_config_op_enabled (status current-function)
|
||||
set -l c_err (set_color red)
|
||||
set -l c_reset (set_color normal)
|
||||
__fish_palette
|
||||
echo "$c_err"'upgrade: disabled by __fish_config_op_integrations'"$c_reset" >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user