Created
April 4, 2020 18:19
-
-
Save nemrosim/25e4c177176f3fd215a979e259205ab2 to your computer and use it in GitHub Desktop.
constants for migration script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# background color using ANSI escape | |
bgBlack=$(tput setab 0) # black | |
bgRed=$(tput setab 1) # red | |
bgGreen=$(tput setab 2) # green | |
bgYellow=$(tput setab 3) # yellow | |
bgBlue=$(tput setab 4) # blue | |
bgMagenta=$(tput setab 5) # magenta | |
bgCyan=$(tput setab 6) # cyan | |
bgWhite=$(tput setab 7) # white | |
# foreground color using ANSI escape | |
fgBLack=$(tput setaf 0) # black | |
fgRed=$(tput setaf 1) # red | |
fgGreen=$(tput setaf 2) # green | |
fgYellow=$(tput setaf 3) # yellow | |
fgBlue=$(tput setaf 4) # blue | |
fgMagenta=$(tput setaf 5) # magenta | |
fgCyan=$(tput setaf 6) # cyan | |
fgWhite=$(tput setaf 7) # white | |
# text editing options | |
txBold=$(tput bold) # bold | |
txHalf=$(tput dim) # half-bright | |
txUnderline=$(tput smul) # underline | |
txEndUnder=$(tput rmul) # exit underline | |
txReverse=$(tput rev) # reverse | |
txStandout=$(tput smso) # standout | |
txEndStand=$(tput rmso) # exit standout | |
txReset=$(tput -T ansi sgr0) # reset attributes | |
# ENVIRONMENT CONSTANTS | |
DEV=development | |
PROD=production | |
TEST=testing | |
# COMMAND CONSTANTS | |
STATUS_COMMAND=status | |
ROLLBACK_COMMAND=rollback | |
RUN_COMMAND=run | |
REFRESH_COMMAND=refresh | |
RESET_COMMAND=reset | |
# ENV FILE PATHS | |
PROD_ENV_FILE=.env | |
DEVELOPMENT_ENV_FILE=.env.dev | |
TESTING_ENV_FILE=.env.testing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment