aboutsummaryrefslogtreecommitdiffstats
path: root/task_next_projects.pl
blob: f9714b568cda681072109a1b5e1d62a68ed53593 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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();