myt/scripts/source/logging.sh
Ari Archer 54956dc851
Improved docs, fixed some bugs and improved issues
- Improved ISSUE_TEMPLATE
- Added pylintrc
- Fixed contributing rules
- Fixed doc of myt module
- Added `--version` flag
- Split some functionality up in other scripts
- Added `doc.sh` for documentation generation
- Fixed some bugs in tox.ini
- Made git.sh to more permissive

Signed-off-by: Ari Archer <ari@mail.ari-web.xyz>
2022-02-01 18:25:39 +02:00

13 lines
249 B
Bash

([ ! "$NO_COLOUR" ] && command -v tput >/dev/null) || tput() { printf ''; }
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
RESET=$(tput sgr0)
log() {
printf "${GREEN}**${RESET} %s\n" "$1"
}
warn() {
printf "${YELLOW}**${RESET} %s\n" "$1"
}