Taskwarrior::Kusarigama::Hook - Entry-point for Kusarigama's hook scripts
version 0.6.0
# most likely in one of the ~/.task/hooks/on-xxx.pl scripts use Taskwarrior::Kusarigama::Hook; Taskwarrior::Kusarigama::Hook->new( raw_args => \@ARGV )->run_event( 'launch' );
This is the entry point for kusarigama when running it as a Taskwarrior hook.
my $kusarigama = Taskwarrior::Kusarigama::Hook->new( raw_args => [], );
Constructor. Recognizes the following arguments
Reference to the list of arguments as passed to the taskwarrior hooks.
If the system should exit with an error code when one of the plugin throws an exception (and thus abort the executiong of the remaining of the taskwarrior pipeline).
Defaults to true.
true
my $config = $kusarigama->config;
Returns taskwarrior's configuration as task show would.
task show
$kusarigama->run_event( 'launch' );
Runs all plugins associated with the provided stage.
If exit_on_failure is true, it will die if a plugin throws an exception.
exit_on_failure
$kusarigama->run_exit;
Runs the exit stage part of the plugins.
$kusarigama->run_launch;
Runs the launch stage part of the plugins. Also intercepts and run custom commands.
$kusarigama->run_add;
Runs the add stage part of the plugins.
$kusarigama->run_modify;
Runs the modify stage part of the plugins.
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.