diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-09-15 16:08:46 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-09-15 16:08:46 +0100 |
commit | 74a4a22c183536eff3c43fddfc78ce66ee690a18 (patch) | |
tree | 04b7639091942518429c977c7e8cb100caac641b | |
parent | 2ce0a4a02d29f4778520b6a5ea8acc964a7efab6 (diff) |
added new file to get taskw projects
Diffstat (limited to '')
-rw-r--r-- | task_next_projects.pl | 29 |
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(); |