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

NAME

Taskwarrior::Kusarigama::Hook::OnAdd - Role for plugins running during the task creation stage

VERSION

version 0.5.0

SYNOPSIS

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

    use Moo;

    extends 'Taskwarrior::Kusarigama::Hook';

    with 'Taskwarrior::Kusarigama::Hook::OnAdd';

    sub on_add {
        say "adding task";
    }

    1;

DESCRIPTION

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

Requires that a on_add is implemented.

The on_add method, when invoked, will be given the newly created task associated with the command.

    sub on_add {
        my( $self, $task ) = @_;

        ...
    }

AUTHOR

Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 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.