arch & placeholders
This commit is contained in:
parent
a3b16ae58a
commit
57543e139a
10 changed files with 233 additions and 2 deletions
21
main.py
Normal file
21
main.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from storage.repository import load_data, save_data
|
||||
from cli.menu import main_menu
|
||||
|
||||
def main():
|
||||
data = load_data()
|
||||
|
||||
while True:
|
||||
choice = main_menu()
|
||||
|
||||
if choice == "1":
|
||||
print("Wars:")
|
||||
for war in data["wars"]:
|
||||
print(f"- {war['name']}")
|
||||
|
||||
elif choice == "5":
|
||||
save_data(data)
|
||||
print("Goodbye.")
|
||||
break
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue