18 lines
240 B
Bash
18 lines
240 B
Bash
|
# output utilities
|
||
|
|
||
|
tp() {
|
||
|
tput "$@"
|
||
|
}
|
||
|
|
||
|
error() {
|
||
|
echo "$(tp bold)$(tp setaf 1)$*$(tp sgr0)" >&2
|
||
|
}
|
||
|
|
||
|
progress() {
|
||
|
echo "[$(tp setaf 3)DOING$(tp sgr0)] $(tp sgr0)$*"
|
||
|
}
|
||
|
|
||
|
ok() {
|
||
|
echo "[$(tp bold)$(tp setaf 2)DONE$(tp sgr0)] $(tp sgr0)$*"
|
||
|
}
|