Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/common.sh
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-01-18 02:29:27 +0100
committerChristian Heusel <christian@heusel.eu>2024-01-21 23:28:29 +0100
commit66e83c950cfa1c51820f04130abfacaf7c6b4c4c (patch)
tree65b85f1632a084c7832cdb66a725a2219b3a9d95 /src/lib/common.sh
parent96f39525bf60a499aa840015159d9040b53be69a (diff)
feat(version): pretty print and group together version check results
Collect all check results in arrays and pretty print the results after grouping them together based on out-of-date, up-to-date and failures. Print a summary that shows a brief statistic about the results when processing multiple check items. Component: pkgctl version check Component: pkgctl version upgrade Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'src/lib/common.sh')
-rw-r--r--src/lib/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/common.sh b/src/lib/common.sh
index a93e906..9d5622e 100644
--- a/src/lib/common.sh
+++ b/src/lib/common.sh
@@ -36,9 +36,10 @@ if [[ -t 2 && "$TERM" != dumb ]] || [[ ${DEVTOOLS_COLOR} == always ]]; then
colorize
PURPLE="$(tput setaf 5)"
DARK_GREEN="$(tput setaf 2)"
+ UNDERLINE="$(tput smul)"
else
# shellcheck disable=2034
- declare -gr ALL_OFF='' BOLD='' BLUE='' GREEN='' RED='' YELLOW='' PURPLE=''
+ declare -gr ALL_OFF='' BOLD='' BLUE='' GREEN='' RED='' YELLOW='' PURPLE='' DARK_GREEN='' UNDERLINE=''
fi
stat_busy() {