- COPYRIGHT AND LICENSE
Taskwarrior::Kusarigama::Core - Set of core functions interacting with Taskwarrior
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
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.
my @tasks = $tw->export_tasks( @query );
$ 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).
$tw->import_task( \%task )
$ task import <json representation of %task>
$result = $tw->calc( qw/ today + 3d / );
$ task calc today + 3d
Yanick Champoux <firstname.lastname@example.org>
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.