-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paths.sh
executable file
·30 lines (29 loc) · 1009 Bytes
/
s.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
if [[ $# -ne 1 ]]
then
echo "You missed the arguement part, try [run,make,mig,shl,sup]"
else
if [[ $1 = "run" ]]
then
printf "\033[0;36m\033[1mRan command: \'python3 manage.py runserver 1803\'\033[0m\n"
python3 manage.py runserver 1803
elif [[ $1 = "shl" ]]
then
printf "\033[0;36m\033[1mRan command: \'python3 manage.py shell\'\033[0m\n"
python3 manage.py shell
elif [[ $1 = "make" ]]
then
printf "\033[0;36m\033[1mRan command: \'python3 manage.py makemigrations\'\033[0m\n"
python3 manage.py makemigrations
elif [[ $1 = "mig" ]]
then
printf "\033[0;36m\033[1mRan command: \'python3 manage.py migrate\'\033[0m\n"
python3 manage.py migrate
elif [[ $1 = "sup" ]]
then
printf "\033[0;36m\033[1mRan command: \'python3 manage.py createsuperuser\'\033[0m\n"
python3 manage.py createsuperuser
else
echo "Illegal arguments, try [run,make,mig,shl,sup]"
fi
fi