Taskwarrior::Kusarigama::Task - per-task Taskwarrior::Kusarigama::Wrapper
version 0.6.0
use Taskwarrior::Kusarigama::Wrapper; use Taskwarrior::Kusarigama::Task; my $tw = Taskwarrior::Kusarigama::Wrapper->new; my ( $task ) = $tw->export; say $task->info;
Thin wrapper around the task hashrefs that calls Taskwarrior::Kusarigama::Wrapper.
Unless specified otherwise, the task must have an uuid to be acted upon.
uuid
my $task = Taskwarrior::Kusarigama::Task->new( \%data ); my $task = Taskwarrior::Kusarigama::Task->new( $wrapper, \%data );
Constructor. Takes in a raw hashref of the task's attributes as would be give by task export, and an optional $wrapper, which is the Taskwarrior::Kusarigama::Wrapper object to use. The wrapper object can also be passed via a _wrapper attribute.
task export
$wrapper
_wrapper
# equivalent to the two-argument 'new' my $task = Taskwarrior::Kusarigama::Task->new( { _wrapper => $wrapper, %data } );
Clone the current task. All attributes are copied, except for id, uuid, urgency, status, entry and modified.
id
urgency
status
entry
modified
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.