-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram.py
More file actions
34 lines (28 loc) · 716 Bytes
/
program.py
File metadata and controls
34 lines (28 loc) · 716 Bytes
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
31
32
33
34
import sys
sys.path.append('./cmd/')
from style import style
from db import dbMenu
from commands import mainMenu
if __name__ == "__main__":
cont = 'yes'
while (cont == 'yes'):
style(" Redis Hands-on ")
print("1. Setup Redis")
print("2. Play with Redis Commands")
print("3. More on Redis DB")
print("--")
print("9. Exit")
print()
ch = int(input("> "))
print()
if (ch == 1):
pass
elif (ch == 2):
mainMenu()
elif (ch== 3):
dbMenu()
elif ch==9:
exit()
print()
cont = str(input("Run the entire program again? (yes/no) : "))
print()