aboutsummaryrefslogtreecommitdiffstats
path: root/tw/task_next_projects.pl
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-09-18 21:12:26 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-09-18 21:12:26 +0100
commitc67ec9f37c46f42297a6844806debe439be290cd (patch)
tree23089bf978eccb1da6cb4918bace71ad3f884230 /tw/task_next_projects.pl
parent49d443767d1290db4374ab0059382b047d902567 (diff)
tidy up files
Diffstat (limited to 'tw/task_next_projects.pl')
-rw-r--r--tw/task_next_projects.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/tw/task_next_projects.pl b/tw/task_next_projects.pl
new file mode 100644
index 0000000..d87d8a4
--- /dev/null
+++ b/tw/task_next_projects.pl
@@ -0,0 +1,30 @@
+use warnings;
+use strict;
+use JSON;
+use Data::Dumper;
+
+my $json = JSON->new->allow_nonref;
+
+sub pending_work {
+ my $tw = qx(task project:w status:pending export);
+ my $text = $json->decode( $tw );
+ foreach my $h (@{$text}) {
+ printf ("%-16s: %s\n", ${$h}{'project'}, ${$h}{'description'});
+ }
+}
+
+sub pending_home {
+ my $tw = qx(task project:h status:pending export);
+ my $text = $json->decode( $tw );
+ foreach my $h (@{$text}) {
+ printf ("%-16s: %s\n", ${$h}{'project'}, ${$h}{'description'});
+ }
+}
+
+
+print "Work:\n-----\n";
+pending_work();
+
+
+print "\nHome:\n-----\n";
+pending_home();