ajout des fonctions q*
This commit is contained in:
parent
fa2dffdfbe
commit
451b2768e6
|
@ -309,6 +309,7 @@ function eimportant() {
|
|||
__eimportant "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qimportant() { eimportant "$*"; quietc_echo "IMPORTANT: $*"; }
|
||||
|
||||
function eattention() {
|
||||
# Afficher un message important
|
||||
|
@ -317,6 +318,7 @@ function eattention() {
|
|||
__eattention "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qattention() { eattention "$*"; quietc_echo "ATTENTION: $*"; }
|
||||
|
||||
function eerror() {
|
||||
# Afficher un message d'erreur
|
||||
|
@ -325,6 +327,7 @@ function eerror() {
|
|||
__eerror "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qerror() { eerror "$*"; quietc_echo "ERROR: $*"; }
|
||||
|
||||
function eerror_unless() {
|
||||
# Afficher $1 avec eerror() si la commande $2..@ retourne FAUX. dans tous les cas, retourner le code de retour de la commande.
|
||||
|
@ -419,6 +422,7 @@ function ewarn() {
|
|||
__ewarn "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qwarn() { ewarn "$*"; quietc_echo "WARN: $*"; }
|
||||
|
||||
function enote() {
|
||||
# Afficher un message d'information de même niveau qu'un avertissement
|
||||
|
@ -427,6 +431,7 @@ function enote() {
|
|||
__enote "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qnote() { enote "$*"; quietc_echo "NOTE: $*"; }
|
||||
|
||||
function einfo() {
|
||||
# Afficher un message d'information
|
||||
|
@ -435,6 +440,7 @@ function einfo() {
|
|||
__einfo "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qinfo() { einfo "$*"; quietc_echo "INFO: $*"; }
|
||||
|
||||
function eecho() {
|
||||
# Afficher un message d'information sans préfixe
|
||||
|
@ -443,6 +449,7 @@ function eecho() {
|
|||
__eecho "$*" 1>&2
|
||||
eval "$NULIB__ENABLE_SET_X"
|
||||
}
|
||||
function qecho() { eecho "$*"; quietc_echo "$*"; }
|
||||
|
||||
function eecho_() {
|
||||
show_info || return
|
||||
|
@ -505,6 +512,8 @@ function estepw_() { show_info || return; eval "$NULIB__DISABLE_SET_X"; __estepw
|
|||
function estepn_() { show_info || return; eval "$NULIB__DISABLE_SET_X"; __estepn_ "$*" 1>&2; eval "$NULIB__ENABLE_SET_X"; }
|
||||
function estepi_() { show_info || return; eval "$NULIB__DISABLE_SET_X"; __estepi_ "$*" 1>&2; eval "$NULIB__ENABLE_SET_X"; }
|
||||
|
||||
function qstep() { estep "$*"; quietc_echo "* $*"; }
|
||||
|
||||
function action() {
|
||||
# commencer l'action $1
|
||||
# - si $2..$* est spécifié, c'est une commande qui est lancée dans le contexte
|
||||
|
|
Loading…
Reference in New Issue