-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (15 loc) · 708 Bytes
/
main.py
File metadata and controls
26 lines (15 loc) · 708 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
import sys
from CommandManager.CommandManager import CommandManager
from LedgerFileManager.LedgerFileManager import LedgerFileManager
from LedgerOperationManager.LedgerOperationManager import LedgerOperationManager
def main():
commandManager = CommandManager(sys.argv[1::])
commands,arguments = commandManager.getInfo()
fileManager = LedgerFileManager(arguments)
if fileManager.booksExists():
fileManager.parseAllBooks()
operationManager = LedgerOperationManager(fileManager.bookParsed)
operationManager.executeOperations(
commandManager.generateOperations(commands,arguments),fileManager.bookParsed.keys())
if __name__ == "__main__":
main()