-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
21 lines (19 loc) · 733 Bytes
/
main.py
File metadata and controls
21 lines (19 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from app.main_operations import *
from app.settings_yaml_vars import *
while True:
# OPERATION CHOICE
choiceOfOperation = input('summer> ')
# OPERATION EXECUTION
if choiceOfOperation=="help":
MainOperations.help()
elif choiceOfOperation=="init":
MainOperations.init(SettingsYamlVars.pathToScan, SettingsYamlVars.filesListWithHashesTextFilePath)
elif choiceOfOperation=="update":
MainOperations.update(SettingsYamlVars.pathToScan, SettingsYamlVars.filesListWithHashesTextFilePath)
elif choiceOfOperation=="exit":
print('Bye bye!')
break
elif choiceOfOperation=="":
pass
else:
print("Unknown option, type help to show all avaible commands.")