The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Taskwarrior::Kusarigama::Wrapper - interface to the taskwarrior's 'task' command

VERSION

version 0.12.0

SYNOPSIS

    use  TaskWarrior::Kusarigama::Wrapper;

    my $tw = TaskWarrior::Kusarigama::Wrapper->new;

    say for $tw->next( [ '+focus' ] );

DESCRIPTION

Inspired by Git::Wrapper (i.e., I lifted and stole the code, and tweaked to work with 'task'). At its core beats a dark AUTOLOAD heart, which convert any method call into an invocation of task with whatever parameters are passed.

If the first parameter to be passed to a command is an array ref, it's understood to be a filter that will be inserted before the command. Also, any parameter will be a hahsref, will be also be understood as a key-value pair, and given the right separator (= for rc.* arguments, : for regular ones). For example:

    $tw->mod( [ '+focus', '+PENDING', { 'due.before' => 'today' } ], { priority => 'H' } );
    # runs task +focus +PENDING due.before:today mod priority:H

METHODS

export

As a convenience, export returns the list of tasks exported (as Taskwarrior::Kusarigama::Task objects) instead than as raw text.

AUTHOR

Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019, 2018, 2017 by Yanick Champoux.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.