Taskwarrior::Kusarigama::Core - Set of core functions interacting with Taskwarrior
version 0.6.0
Role consumed by Taskwarrior::Kusarigama::Hook.
The role provides the following methods:
Returns the arguments that preceding the command as a string.
# assuming `task this and that foo` was run, and the command is 'foo' $tw->pre_command_args; # => 'this and that'
Note that because the way the hooks get the arguments, there is no way to distinguish between
task 'this and that' foo
and
task this and that foo
Returns the arguments that follow the command as a string.
# assuming `task this and that foo sumfin` was run, and the command is 'foo' $tw->post_command_args; # => 'sumfin'
Returns a Taskwarrior::Kusarigama::Wrapper object.
Returns an arrayref of instances of the plugins defined under Taskwarrior's kusarigama.plugins configuration key.
kusarigama.plugins
my @tasks = $tw->export_tasks( @query );
Equivalent to
$ task export ...query...
Returns the list of the tasks.
my $task = $tw->new_task( \%task ); $task->save;
Creates a new task, but doesn't commit it yet (use save for that).
save
$tw->import_task( \%task )
$ task import <json representation of %task>
$result = $tw->calc( qw/ today + 3d / );
$ task calc today + 3d
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 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.
To install Taskwarrior::Kusarigama, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Taskwarrior::Kusarigama
CPAN shell
perl -MCPAN -e shell install Taskwarrior::Kusarigama
For more information on module installation, please visit the detailed CPAN module installation guide.