First commit
This commit is contained in:
commit
e1f41d37fa
3 changed files with 121 additions and 0 deletions
23
example/example.sh
Executable file
23
example/example.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
# message librairy example
|
||||
|
||||
source ../message.sh
|
||||
EXIT_ON_ERROR=1
|
||||
|
||||
debug "This message wille not be displayed because debug is not activated"
|
||||
|
||||
msg "\n**__welcome to message lib example__**\n"
|
||||
msg "red" "\nMessages "
|
||||
msg "green" "can "
|
||||
msg "yellow" "be "
|
||||
msg "blue" "colored"
|
||||
msg " **bold** and __underline__ \n\n"
|
||||
|
||||
warning "Text with **a warning**"
|
||||
msg "and when DEBUG=1\n"
|
||||
|
||||
DEBUG=1
|
||||
debug "with debug message"
|
||||
|
||||
error "Or a **real** and __serious__ error that exit script when EXIT_ON_ERROR=1"
|
Reference in a new issue