aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-09-15 16:08:46 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-09-15 16:08:46 +0100
commit74a4a22c183536eff3c43fddfc78ce66ee690a18 (patch)
tree04b7639091942518429c977c7e8cb100caac641b
parent2ce0a4a02d29f4778520b6a5ea8acc964a7efab6 (diff)
added new file to get taskw projects
Diffstat (limited to '')
-rw-r--r--task_next_projects.pl29
1 files changed, 29 insertions, 0 deletions
diff --git a/task_next_projects.pl b/task_next_projects.pl
new file mode 100644
index 0000000..f9714b5
--- /dev/null
+++ b/task_next_projects.pl
@@ -0,0 +1,29 @@
+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 ("%s: %s\n", ${$h}{'uuid'}, ${$h}{'description'});
+ }
+}
+
+sub pending_home {
+ my $tw = qx(task project:h status:pending export);
+ my $text = $json->decode( $tw );
+ foreach my $h (@{$text}) {
+ printf ("%s: %s\n", ${$h}{'uuid'}, ${$h}{'description'});
+ }
+}
+
+print "Work:\n-----\n";
+pending_work();
+
+
+print "\nHome:\n-----\n";
+pending_home();