From 2b9ac803903f39d0d3e6f804100a1d417aba3404 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 27 Nov 2024 13:47:30 +0100 Subject: [PATCH] Log to stderr --- functions/log-e.fish | 6 +++--- functions/log-f.fish | 6 +++--- functions/log-i.fish | 6 +++--- functions/log-s.fish | 6 +++--- functions/log-t.fish | 6 +++--- functions/log-w.fish | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/functions/log-e.fish b/functions/log-e.fish index 4136e9a..f50df60 100644 --- a/functions/log-e.fish +++ b/functions/log-e.fish @@ -4,15 +4,15 @@ function log-e end set_color red - echo -n -- "$argv[1] " + echo -n -- "$argv[1] " 1>&2 set_color reset set_color --bold brred - echo -n -- "$argv[2]" + echo -n -- "$argv[2]" 1>&2 set_color reset set_color red - echo -n -- " $argv[3]" + echo -n -- " $argv[3]" 1>&2 echo set_color reset end diff --git a/functions/log-f.fish b/functions/log-f.fish index a1ecf7f..57e7182 100644 --- a/functions/log-f.fish +++ b/functions/log-f.fish @@ -5,17 +5,17 @@ function log-f set_color --background red set_color brwhite - echo -n -- "$argv[1] " + echo -n -- "$argv[1] " 1>&2 set_color reset set_color --background brred set_color --bold brwhite - echo -n -- "$argv[2]" + echo -n -- "$argv[2]" 1>&2 set_color reset set_color --background red set_color brwhite - echo -n -- " $argv[3]" + echo -n -- " $argv[3]" 1>&2 echo set_color reset end diff --git a/functions/log-i.fish b/functions/log-i.fish index 2bd6f15..e22b1a0 100644 --- a/functions/log-i.fish +++ b/functions/log-i.fish @@ -4,15 +4,15 @@ function log-i end set_color cyan - echo -n -- "$argv[1] " + echo -n -- "$argv[1] " 1>&2 set_color reset set_color --bold brcyan - echo -n -- "$argv[2]" + echo -n -- "$argv[2]" 1>&2 set_color reset set_color cyan - echo -n -- " $argv[3]" + echo -n -- " $argv[3]" 1>&2 echo set_color reset end diff --git a/functions/log-s.fish b/functions/log-s.fish index 3cdfe21..f8b8b5d 100644 --- a/functions/log-s.fish +++ b/functions/log-s.fish @@ -4,15 +4,15 @@ function log-s end set_color green - echo -n -- "$argv[1] " + echo -n -- "$argv[1] " 1>&2 set_color reset set_color --bold brgreen - echo -n -- "$argv[2]" + echo -n -- "$argv[2]" 1>&2 set_color reset set_color green - echo -n -- " $argv[3]" + echo -n -- " $argv[3]" 1>&2 echo set_color reset end diff --git a/functions/log-t.fish b/functions/log-t.fish index 26a4ff8..26b0076 100644 --- a/functions/log-t.fish +++ b/functions/log-t.fish @@ -4,15 +4,15 @@ function log-t end set_color purple - echo -n -- "$argv[1] " + echo -n -- "$argv[1] " 1>&2 set_color reset set_color --bold brpurple - echo -n -- "$argv[2]" + echo -n -- "$argv[2]" 1>&2 set_color reset set_color purple - echo -n -- " $argv[3]" + echo -n -- " $argv[3]" 1>&2 echo set_color reset end diff --git a/functions/log-w.fish b/functions/log-w.fish index f48d81a..8dc4009 100644 --- a/functions/log-w.fish +++ b/functions/log-w.fish @@ -4,15 +4,15 @@ function log-w end set_color yellow - echo -n -- "$argv[1] " + echo -n -- "$argv[1] " 1>&2 set_color reset set_color --bold bryellow - echo -n -- "$argv[2]" + echo -n -- "$argv[2]" 1>&2 set_color reset set_color yellow - echo -n -- " $argv[3]" + echo -n -- " $argv[3]" 1>&2 echo set_color reset end