Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/library/output_format.sh
diff options
context:
space:
mode:
authorWilliam Giokas <1007380@gmail.com>2013-03-04 02:42:34 -0600
committerAllan McRae <allan@archlinux.org>2013-03-08 17:04:40 +1000
commitf8ed8620d03e7e6fc58815bbee5b65c786fbc423 (patch)
treeab1b343dcf9d011217d915686064b46aafa0fd51 /scripts/library/output_format.sh
parent5a67eee78c58475907a2128c46c08c137d41e4f9 (diff)
contrib: Make pacdiff colors the same as makepkg
Added an `ask` message function that emulates pacman's appearance. Signed-off-by: William Giokas <1007380@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/library/output_format.sh')
-rw-r--r--scripts/library/output_format.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/library/output_format.sh b/scripts/library/output_format.sh
index 18f1f588..9f02c00b 100644
--- a/scripts/library/output_format.sh
+++ b/scripts/library/output_format.sh
@@ -16,6 +16,11 @@ msg2() {
printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
}
+ask() {
+ local mesg=$1; shift
+ printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
+}
+
warning() {
local mesg=$1; shift
printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2