Make colors work!
This commit is contained in:
10
⚡️
10
⚡️
@@ -17,7 +17,7 @@ main() {
|
||||
if [[ $(type ⚡️$subcommand) =~ _help-line ]]; then
|
||||
printf "\t%-20s - %s\n" "$subcommand" "$(⚡️$subcommand help-line)"
|
||||
else
|
||||
printf "\t%-20s" $subcommand
|
||||
printf "\t%-20s\n" $subcommand
|
||||
fi
|
||||
done
|
||||
}
|
||||
@@ -32,4 +32,12 @@ _help-line() {
|
||||
fi
|
||||
}
|
||||
|
||||
_good-message() {
|
||||
echo -e "\e[32m$@\e[0m"
|
||||
}
|
||||
|
||||
_bad-message() {
|
||||
echo -e "\e[31m$@\e[0m"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user