mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-18 05:50:28 +00:00
docs(shell): add function docstring comments
This commit is contained in:
@@ -49,16 +49,19 @@ log_error()
|
||||
{
|
||||
echo -e "${RED}ERROR:${NC} $1" >&2
|
||||
}
|
||||
# Log a warning message
|
||||
log_warn()
|
||||
{
|
||||
echo -e "${YELLOW}WARN:${NC} $1" >&2
|
||||
}
|
||||
# Log an informational message
|
||||
log_info()
|
||||
{
|
||||
if [[ "${INFO:-0}" == "1" ]]; then
|
||||
echo -e "${GREEN}INFO:${NC} $1" >&2
|
||||
fi
|
||||
}
|
||||
# Log a debug message
|
||||
log_debug()
|
||||
{
|
||||
if [[ "${DEBUG:-0}" == "1" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user