-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeneralStructure.py
More file actions
32 lines (30 loc) · 953 Bytes
/
Copy pathgeneralStructure.py
File metadata and controls
32 lines (30 loc) · 953 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
from colorama import init, Fore, Style, Back
######### MY MODULES IMPORTS #########
from userInput import inputUser
from nameRegistry import nameRegistry
from searchUsername import searchUsername
from utils import exitApp, rangeOptions
from listAll import listAll
#### CALL VARIABLE CHOICE FROM inputUser Function of userInput custom MODULE
def inputUserChoice():
global choice
choice = inputUser()
###### CONVERT COLORAMA PARA CMD, POWERSHELL, BASH ETC....
init(convert=True)
######## PROGRAMA BASE ##########
def mainApp():
print(Back.BLUE + Fore.WHITE + "Olá, Seja bem vindo ao JairoDB" + Style.RESET_ALL)
print("")
while True:
inputUserChoice()
if choice == 1:
nameRegistry()
elif choice == 2:
searchUsername()
elif choice == 3:
listAll()
elif choice > 4 or choice < 1:
rangeOptions()
else:
exitApp()
break