blob: d87d8a41fc72a2b6d8e6cf86a0adf4cd020b03d7 (
plain) (
tree)
|
|
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();
|