-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.py
More file actions
29 lines (25 loc) · 680 Bytes
/
cli.py
File metadata and controls
29 lines (25 loc) · 680 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
from src.cli import *
debug = False
if len(sys.argv) > 1 and '--debug' in sys.argv:
debug = True
cd = CursesDisplay(debug)
cd.display()
"""
if __name__ == '__main__':
# if len(sys.argv) < 3:
# print("Usage: python cli.py <start> <end>")
# sys.exit(1)
# events = get_events(0, datetime_to_seconds_since_epoch(datetime.datetime.now()))
events = get_events_file("json.txt")
c = CursesView()
try:
c.display_daily(events)
except Exception as e:
c.cleanup()
print(e)
traceback.print_exc()
finally:
c.cleanup()
# events = get_events(sys.argv[1], sys.argv[2])
display_daily_term(events)
"""