NAME
Taskwarrior::Kusarigama::Task - per-task Taskwarrior::Kusarigama::Wrapper
VERSION
version 0.12.0
SYNOPSIS
use Taskwarrior::Kusarigama::Wrapper;
use Taskwarrior::Kusarigama::Task;
my $tw = Taskwarrior::Kusarigama::Wrapper->new;
my ( $task ) = $tw->export;
say $task->info;
DESCRIPTION
Thin wrapper around the task hashrefs that calls Taskwarrior::Kusarigama::Wrapper.
Unless specified otherwise, the task must have an uuid
to be acted upon.
METHODS
new
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.
# equivalent to the two-argument 'new'
my $task = Taskwarrior::Kusarigama::Task->new(
{ _wrapper => $wrapper, %data }
);
clone
Clone the current task. All attributes are copied, except for id
, uuid
, urgency
, status
, entry
and modified
.
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.