chore: formatted meow utility with shfmt

pull/1/head
Pocco81 3 years ago
parent 153bbb5e57
commit 72e23db850

@ -10,18 +10,15 @@ COMMAND_ARGS=$2
esc=""
reset="${esc}[0m"
# ----- print kitty ----- #
sub_print () {
sub_print() {
local CATLINE1=" /| 、 "
local CATLINE2="(°、 。 7 "
local CATLINE3=" |、 ~ヽ "
local CATLINE4=" じしf_,) "
case $COMMAND_ARGS in
# print coloured version based on input
@ -59,11 +56,9 @@ sub_print () {
echo "${reset}"
}
# ----- print help ----- #
sub_help () {
sub_help() {
echo "Usage: $BIN_NAME <command>"
echo
@ -77,35 +72,31 @@ sub_help () {
}
# ----- link source ----- #
sub_source () {
sub_source() {
echo "Catpuccin: https://github.com/catppuccin/catppuccin"
echo "This Script: https://github.com/catppuccin/catppuccin/blob/main/resources/meow"
}
# ----- command handler ----- #
case $COMMAND_NAME in
# print kitty by default
"")
# print kitty by default
"")
sub_print
;;
# make help available via flags
"-h" | "--help")
"-h" | "--help")
sub_help
;;
# parse whatever command
*)
# parse whatever command
*)
shift
sub_${COMMAND_NAME} $@
if [ $? = 127 ]; then

Loading…
Cancel
Save