;
use Graph::Directed;
use List::AllUtils qw/ uniq first_value /;
use JSON;
my %tasks = map { $_->{uuid} => $_ } @{ from_json `task +PENDING export` };
my $graph = Graph::Directed->new;
$graph->a
use Path::Tiny;
use Hash::Merge qw/merge /;
use List::AllUtils qw/ reduce pairmap pairmap /;
use JSON;
use experimental 'postderef';
with 'Taskwarrior::Kusarigama::Core';
has raw_args => (
is
hod = join '_', 'run', $event;
my @plugins = $self->plugins->@*;
my @tasks = map { from_json($_) } <STDIN>;
try {
$self->$method(\@plugins,@tasks);
}
catch {
say
on_add($task) for grep { $_->DOES('Taskwarrior::Kusarigama::Hook::OnAdd') } @$plugins;
say to_json($task);
say for $self->feedback->@*;
}
# TODO document the $old, $new, $diff
sub run_modif
strict;
use warnings;
use Path::Tiny;
use Moo::Role;
use MooseX::MungeHas;
use IPC::Run3;
use JSON;
use Module::Runtime qw/ use_module /;
use List::AllUtils qw/ uniq /;
use experimental 'postdere
f export /, @query], undef, \my $out;
return @{ from_json $out };
}
sub import_task {
my( $self, $task ) = @_;
my $in = to_json $task;
run3 [qw/ task rc.recurrence=no import /], \
he tasks.
=head2 import_task
$tw->import_task( \%task )
Equivalent to
$ task import <json representation of %task>
=head2 calc
$result = $tw->calc( qw/ today + 3d / );
Equivalent t