diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-09-22 15:02:06 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-09-22 15:02:06 +0100 |
commit | 3e141b675c5c103821462ab97cbdaba56f53ca60 (patch) | |
tree | 8296f207b503151ed4df0cf8d1a73d21e3b1c7d4 /tw | |
parent | 25ba83f0b9af172b355a5b8d3d584ffeaa49a432 (diff) |
added basic tw tasks to dayplan
Diffstat (limited to 'tw')
-rw-r--r-- | tw/task_next_projects.pl | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tw/task_next_projects.pl b/tw/task_next_projects.pl index d87d8a4..eaa13f8 100644 --- a/tw/task_next_projects.pl +++ b/tw/task_next_projects.pl @@ -21,10 +21,30 @@ sub pending_home { } } +sub sched_today_work { + my $tw = qx(task project:w status:pending sched:today export); + my $text = $json->decode( $tw ); + foreach my $h (@{$text}) { + printf ("%-16s: %s\n", ${$h}{'project'}, ${$h}{'description'}); + } +} + +sub due_today_work { + my $tw = qx(task project:w status:pending due:today export); + my $text = $json->decode( $tw ); + foreach my $h (@{$text}) { + printf ("%-16s: %s\n", ${$h}{'project'}, ${$h}{'description'}); + } +} + +print "Work Due Today:\n-----\n"; +due_today_work(); + +print "Work Sched Today:\n-----\n"; +sched_today_work(); print "Work:\n-----\n"; pending_work(); - print "\nHome:\n-----\n"; pending_home(); |