refactor: use __fish_palette in agents and auto-pull functions

34 duplicated declarations replaced by 5 calls. Output strings untouched;
byte-identical across 29 harness cases.
This commit is contained in:
2026-09-07 20:02:15 -04:00
parent bca79d3c5a
commit e64e964666
5 changed files with 5 additions and 34 deletions
+1 -2
View File
@@ -31,8 +31,7 @@
# EXAMPLE
# _agents_init_ensure_gitignore /home/user/myproject "agents-init" "AGENTS/" "/AGENTS.md"
function _agents_init_ensure_gitignore
set -l c_ok (set_color green)
set -l c_reset (set_color normal)
__fish_palette
if test (count $argv) -lt 3
echo (set_color red)"_agents_init_ensure_gitignore: requires <root> <label> <pattern>..."(set_color normal) >&2