taskcheck 0.3.3.post3__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {taskcheck-0.3.3.post3/taskcheck.egg-info → taskcheck-0.4.0}/PKG-INFO +2 -2
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/pyproject.toml +1 -1
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck/__main__.py +15 -3
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck/report.py +2 -2
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0/taskcheck.egg-info}/PKG-INFO +2 -2
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/LICENSE +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/README.md +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/setup.cfg +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck/common.py +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck/ical.py +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck/install.py +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck/parallel.py +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck.egg-info/SOURCES.txt +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck.egg-info/dependency_links.txt +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck.egg-info/entry_points.txt +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck.egg-info/requires.txt +0 -0
- {taskcheck-0.3.3.post3 → taskcheck-0.4.0}/taskcheck.egg-info/top_level.txt +0 -0
|
@@ -20,6 +20,12 @@ arg_parser.add_argument(
|
|
|
20
20
|
action="store",
|
|
21
21
|
help="generate a report of the tasks based on the scheduling; can be any Taskwarrior datetime specification (e.g. today, tomorrow, eom, som, 1st, 2nd, etc.). It is considered as `by`, meaning that the report will be generated for all the days until the specified date and including it.",
|
|
22
22
|
)
|
|
23
|
+
arg_parser.add_argument(
|
|
24
|
+
"-s",
|
|
25
|
+
"--schedule",
|
|
26
|
+
action="store_true",
|
|
27
|
+
help="perform the scheduling algorithm, giving a schedule and a scheduling UDA and alerting for not completable tasks",
|
|
28
|
+
)
|
|
23
29
|
|
|
24
30
|
args = arg_parser.parse_args()
|
|
25
31
|
|
|
@@ -33,21 +39,27 @@ def load_config():
|
|
|
33
39
|
|
|
34
40
|
def main():
|
|
35
41
|
# Load data and check tasks
|
|
42
|
+
print_help = True
|
|
36
43
|
if args.install:
|
|
37
44
|
from taskcheck.install import install
|
|
38
45
|
|
|
39
46
|
install()
|
|
40
47
|
return
|
|
41
48
|
|
|
49
|
+
if args.schedule:
|
|
50
|
+
config = load_config()
|
|
51
|
+
check_tasks_parallel(config, verbose=args.verbose)
|
|
52
|
+
print_help = False
|
|
53
|
+
|
|
42
54
|
if args.report:
|
|
43
55
|
from taskcheck.report import generate_report
|
|
44
56
|
|
|
45
57
|
config = load_config()
|
|
46
58
|
generate_report(config, args.report, args.verbose)
|
|
47
|
-
|
|
59
|
+
print_help = False
|
|
48
60
|
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
if print_help:
|
|
62
|
+
arg_parser.print_help()
|
|
51
63
|
|
|
52
64
|
|
|
53
65
|
if __name__ == "__main__":
|
|
@@ -315,7 +315,7 @@ def build_tasks_table(config, tasks):
|
|
|
315
315
|
for task in tasks:
|
|
316
316
|
task_id = f"[bold green]#{task['id']}[/bold green]"
|
|
317
317
|
project = task.get("project", "")
|
|
318
|
-
description = Text(task["description"], style="
|
|
318
|
+
description = Text(task["description"], style="italic")
|
|
319
319
|
hours = f"[yellow]{task['scheduling_hours']}[/yellow]"
|
|
320
320
|
emoji = get_task_emoji(config, task)
|
|
321
321
|
|
|
@@ -382,7 +382,7 @@ def build_unplanned_tasks_table(config, tasks):
|
|
|
382
382
|
for task in tasks:
|
|
383
383
|
task_id = f"[bold green]#{task['id']}[/bold green]"
|
|
384
384
|
project = task.get("project", "")
|
|
385
|
-
description = Text(task["description"], style="
|
|
385
|
+
description = Text(task["description"], style="italic")
|
|
386
386
|
emoji = get_task_emoji(config, task)
|
|
387
387
|
|
|
388
388
|
table.add_row(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|