-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.py
More file actions
53 lines (43 loc) · 1.02 KB
/
menu.py
File metadata and controls
53 lines (43 loc) · 1.02 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
from linux import *
from docker import *
from aws import *
from hadoop import *
#Task Main Menu
while True:
os.system("clear")
os.system("tput setaf 1")
print("\t\t\t------------------------------")
print("\t\t\t| Welcome to IT Assistant !! |")
print("\t\t\t------------------------------")
os.system("tput setaf 7")
os.system("tput setaf 2")
print("""
\t\tPress 1 : For Linux
\t\tPress 2 : For Docker
\t\tPress 3 : For Hadoop
\t\tPress 4 : For AWS
\t\tPress 5 : To Exit
""")
print()
os.system("tput setaf 3")
ch = input("\t\t\tEnter your Choice : ")
os.system("tput setaf 7")
if int(ch) == 1:
linux_menu()
elif int(ch) == 2:
docker_menu()
elif int(ch) == 3:
hadoop_menu()
elif int(ch) == 4:
aws_menu()
else:
os.system("clear")
print()
os.system("tput setaf 1")
print("\t ---------------------------------------")
print("\t | Thank You for Using IT Assistant !! |")
print("\t ---------------------------------------")
os.system("tput setaf 7")
print()
exit()