NAME

Taskwarrior::Kusarigama::Hook::OnLaunch - Role for plugins running during the task launch stage

VERSION

version 0.12.0

SYNOPSIS

package Taskwarrior::Kusarigama::Plugin::Foo;

use Moo;

extends 'Taskwarrior::Kusarigama::Hook';

with 'Taskwarrior::Kusarigama::Hook::OnLaunch';

sub on_launch {
    say "launching taskwarrior";
}

1;

DESCRIPTION

Role consumed by plugins running during the launching stage of the Taskwarrior hook lifecycle.

Requires that a on_launch is implemented.

The on_launch method, when invoked, will be given the list of tasks associated with the command.

sub on_launch {
    my( $self, @tasks ) = @_;

    ...
}

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.