summaryrefslogtreecommitdiff
path: root/util.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-17 16:18:16 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-17 16:18:16 +1100
commit7205226e5f2f17c2ffa4cf16efa25a36d3e91125 (patch)
tree928e453739ce25b4676484a4bc8ff5598044c565 /util.fish
downloadcaelestia-cli-7205226e5f2f17c2ffa4cf16efa25a36d3e91125.tar.gz
caelestia-cli-7205226e5f2f17c2ffa4cf16efa25a36d3e91125.tar.bz2
caelestia-cli-7205226e5f2f17c2ffa4cf16efa25a36d3e91125.zip
Initial commit
Diffstat (limited to 'util.fish')
-rw-r--r--util.fish20
1 files changed, 20 insertions, 0 deletions
diff --git a/util.fish b/util.fish
new file mode 100644
index 0000000..4fe4444
--- /dev/null
+++ b/util.fish
@@ -0,0 +1,20 @@
+function log -a text
+ set_color cyan
+ # Pass arguments other than text to echo
+ echo $argv[2..] -- ":: $text"
+ set_color normal
+end
+
+function warn -a text
+ set_color yellow
+ # Pass arguments other than text to echo
+ echo $argv[2..] -- ":: $text"
+ set_color normal
+end
+
+function error -a text
+ set_color red
+ # Pass arguments other than text to echo
+ echo $argv[2..] -- ":: $text"
+ set_color normal
+end