mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-06 07:19:29 -05:00
19 lines
366 B
Fish
19 lines
366 B
Fish
function _out -a colour -a level -a text
|
|
set_color $colour
|
|
# Pass arguments other than text to echo
|
|
echo $argv[4..] -- ":: [$level] $text"
|
|
set_color normal
|
|
end
|
|
|
|
function log -a text
|
|
_out cyan LOG $text $argv[2..]
|
|
end
|
|
|
|
function warn -a text
|
|
_out yellow WARN $text $argv[2..]
|
|
end
|
|
|
|
function error -a text
|
|
_out red ERROR $text $argv[2..]
|
|
end
|