Skip to content

Commit

Permalink
chore: change colors
Browse files Browse the repository at this point in the history
  • Loading branch information
filipe1309 committed Mar 24, 2022
1 parent df9f66c commit f16ce84
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 30 deletions.
96 changes: 82 additions & 14 deletions .shub/colors.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,86 @@
#!/bin/bash

# DevOntheRun Colors Script

# Black 0;30 Dark Gray 1;30
# Red 0;31 Light Red 1;31
# Green 0;32 Light Green 1;32
# Brown/Orange 0;33 Yellow 1;33
# Blue 0;34 Light Blue 1;34
# Purple 0;35 Light Purple 1;35
# Cyan 0;36 Light Cyan 1;36
# Light Gray 0;37 White 1;37

GREEN='\033[1;32m'
# Devdotrun Colors Script

# BLACK 0;30 Dark Gray 1;30
# RED 0;31 Light RED 1;31
# GREEN 0;32 Light GREEN 1;32
# Brown/Orange 0;33 YELLOW 1;33
# BLUE 0;34 Light BLUE 1;34
# PURPLE 0;35 Light PURPLE 1;35
# CYAN 0;36 Light CYAN 1;36
# Light Gray 0;37 WHITE 1;37

# Reset
NC='\033[0m' # Text Reset

# Regular Colors
BLACK='\033[0;30m'
DARK_GRAY='\033[1;30m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
WHITE='\033[0;37m'

# Bold
BBLACK='\033[1;30m'
BRED='\033[1;31m'
BGREEN='\033[1;32m'
BYELLOW='\033[1;33m'
BBLUE='\033[1;34m'
BPURPLE='\033[1;35m'
BCYAN='\033[1;36m'
BWHITE='\033[1;37m'

# Underline
UBLACK='\033[4;30m'
URED='\033[4;31m'
UGREEN='\033[4;32m'
UYELLOW='\033[4;33m'
UBLUE='\033[4;34m'
UPURPLE='\033[4;35m'
UCYAN='\033[4;36m'
UWHITE='\033[4;37m'

# Background
ON_BLACK='\033[40m'
ON_RED='\033[41m'
ON_GREEN='\033[42m'
ON_YELLOW='\033[43m'
ON_BLUE='\033[44m'
ON_PURPLE='\033[45m'
ON_CYAN='\033[46m'
ON_WHITE='\033[47m'

# # High Intensity
# IBLACK='\033[0;90m'
# IRED='\033[0;91m'
# IGREEN='\033[0;92m'
# IYELLOW='\033[0;93m'
# IBLUE='\033[0;94m'
# IPURPLE='\033[0;95m'
# ICYAN='\033[0;96m'
# IWHITE='\033[0;97m'

# # Bold High Intensity
# BIBLACK='\033[1;90m'
# BIRED='\033[1;91m'
# BIGREEN='\033[1;92m'
# BIYELLOW='\033[1;93m'
# BIBLUE='\033[1;94m'
# BIPURPLE='\033[1;95m'
# BICYAN='\033[1;96m'
# BIWHITE='\033[1;97m'

# # High Intensity backgrounds
# ON_IBLACK='\033[0;100m' # BLACK
# ON_IRED='\033[0;101m' # RED
# ON_IGREEN='\033[0;102m' # GREEN
# ON_IYELLOW='\033[0;103m' # YELLOW
# ON_IBLUE='\033[0;104m' # BLUE
# ON_IPURPLE='\033[0;105m' # PURPLE
# ON_ICYAN='\033[0;106m' # CYAN
# ON_IWHITE='\033[0;107m' # WHITE
16 changes: 7 additions & 9 deletions .shub/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# DevOntheRun Deploy Script
# Devdotrun Deploy Script

.shub/shub-logo.sh
source .shub/colors.sh
Expand Down Expand Up @@ -145,6 +145,8 @@ generateTag() {
#### BRANCH #####
#################

echo "🟢 Starting deploy process ..."

# STEP 1 - SHUB FILES

if test $STATE -lt $STATE_STEP_SHUB_FILES_ID; then
Expand Down Expand Up @@ -249,13 +251,9 @@ if [ -f ".shub-state.ini" ]; then
flush_state
fi

# Update notes file
echo ""
echo "## $GIT_BRANCH_NEXT_CLASS_UP" >> notes.md
echo "" >> notes.md

echo -e "$GREEN"
echo -e "Deploy script finished!"
echo -e "$BLACK $ON_GREEN"
echo -e "🏁 Deploy script finished!"
echo -e "$NC"
echo -e "$DARK_GRAY"
echo -e "Thank you =)"
echo -e "$NC"

2 changes: 1 addition & 1 deletion .shub/helpers.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# DevOntheRun Helpers Script
# Devdotrun Helpers Script

parse_json() {
echo $1 | \
Expand Down
2 changes: 1 addition & 1 deletion .shub/init.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# DevOntheRun INIT Project Script
# Devdotrun INIT Project Script

exec 0< /dev/tty

Expand Down
2 changes: 1 addition & 1 deletion .shub/resync.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# DevOntheRun Resync Script
# Devdotrun Resync Script

.shub/shub-logo.sh
source .shub/colors.sh
Expand Down
2 changes: 1 addition & 1 deletion .shub/self-update.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# DevOntheRun Self-Update Script
# Devdotrun Self-Update Script

source .shub/helpers.sh
source .shub/colors.sh
Expand Down
2 changes: 1 addition & 1 deletion .shub/shub-envs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# DevOntheRun Envs Script
# Devdotrun Envs Script

VERSION=$(head -n 1 .shub/version)

Expand Down
4 changes: 2 additions & 2 deletions .shub/shub-logo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo -e "
____ __ __ _____
/ __// / __ __ / / ____ ___ / ___/___ ___
_\ \ / _ \/ // // _ \/ __// _ \/ (_ // -_)/ _ \
/___//_//_/\_,_//_.__/\__/ \___/\___/ \__//_//_/
By DOTR
/___//_//_/\_,_//_.__/\__/ \___/\___/ \__//_//_/ "
echo -e "$BGREEN By Devdotrun
${NC}"

0 comments on commit f16ce84

Please sign in to comment.