nulib/bash/tests/test-output.sh

45 lines
743 B
Bash
Executable File

#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source "$(dirname -- "$0")/../src/nulib.sh" || exit 1
#NULIB_NO_DISABLE_SET_X=1
args=(
"afficher divers messages avec les fonctions e*"
-d,--date NULIB_ELOG_DATE=1
-m,--myname NULIB_ELOG_MYNAME=1
-n,--no-color '$__set_no_colors 1'
)
parse_args "$@"; set -- "${args[@]}"
eerror "erreur"
ewarn "warning"
enote "note"
ebanner "banner"
eimportant "important"
eattention "attention"
einfo "info"
eecho "vanilla"
edebug "debug"
esection
etitle "title"
estep "step"
estepe "stepe"
estepw "stepw"
estepn "stepn"
estepi "stepi"
ebegin "begin"
edot
edotw
eend
echo "\
line1
line2
line3" | elinedots "lines"
eend
esection "section"
eecho "content"