Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dattasneha committed Oct 10, 2024
1 parent 5d10817 commit b6fccf0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/formatting.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
#!/bin/bash

#Defines color codes for output formatting

# Red color for error messages
RED='\033[0;31m'

# Green color for success messages
GREEN='\033[0;32m'

# Yellow color for warnings messages
YELLOW='\033[0;33m'

# No color, used to reset the color after each message
NC='\033[0m'

# Function to print an error message in red
function echo_error() {
echo -e "${RED}$1${NC}"
}


# Function to print a success message in green
function echo_success() {
echo -e "${GREEN}$1${NC}"
}

# Function to print a warning message in yellow
function echo_warning() {
echo -e "${YELLOW}$1${NC}"
}

0 comments on commit b6fccf0

Please sign in to comment.