From 68195a72be0d0c991e6c9fb3ec45d4f25327784b Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Mon, 9 Oct 2023 02:32:58 -0500 Subject: [PATCH] logging: $usage helper and more cat-like helpers --- logging.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logging.bash b/logging.bash index 62a5d9b..466afb0 100644 --- a/logging.bash +++ b/logging.bash @@ -1,5 +1,8 @@ +define_usage() { read -d '' usage; } errcho() { (>&2 echo $@); } +ercat() { (>&2 cat "$@"); } errcat() { (>&2 cat <<<"$@"); } dedcat() { (>&2 cat <<<"$@"); exit 1; } +xcat() { (>&2 cat "$@"); exit 0; } excat() { (>&2 cat <<<"$@"); exit 0; } die() { errcho $@; exit 1; }