nulib/bash/tests/test-output.sh

45 lines
743 B
Bash
Raw Normal View History

2023-10-17 23:40:19 +04:00
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
2023-10-20 10:30:12 +04:00
source "$(dirname -- "$0")/../src/nulib.sh" || exit 1
#NULIB_NO_DISABLE_SET_X=1
2023-10-17 23:40:19 +04:00
2023-10-21 19:49:06 +04:00
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[@]}"
2023-10-17 23:40:19 +04:00
eerror "erreur"
ewarn "warning"
enote "note"
ebanner "banner"
eimportant "important"
eattention "attention"
einfo "info"
eecho "vanilla"
edebug "debug"
2023-10-21 19:49:06 +04:00
esection
2023-10-17 23:40:19 +04:00
2023-10-21 19:49:06 +04:00
etitle "title"
2023-10-17 23:40:19 +04:00
estep "step"
estepe "stepe"
estepw "stepw"
estepn "stepn"
estepi "stepi"
ebegin "begin"
edot
edotw
eend
echo "\
line1
line2
line3" | elinedots "lines"
eend
2023-10-21 19:49:06 +04:00
esection "section"
eecho "content"