Skip Menu |

This queue is for tickets about the App-Todo CPAN distribution.

Report information
The Basics
Id: 36857
Status: rejected
Priority: 0/
Queue: App-Todo

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.96
Fixed in: (no value)



Subject: No todo.pm
It seems that portability and extensibility would be ehnanced by having a todo.pm. I'd like to do something like this: use Hiveminder::TODO qw(asTodoTxt); my $item = Hiveminder::TODO->new(); $item->due('Monday'); $item->priority('high'); $item->priority()++; # Overloaded increment l-value??? $item->description(<<END_DESCRIPTION); yada yada yada... more stuff and more stuff END_DESCRIPTION item->tags(qw(hacking eating sleeping)); print $item; or print $item->asText(); # Braindump-wise or print $item->asTodoTxt(); # Todo.txt-wise open my $todo_fh, '>', 'todo.txt' or die $!; $todo_text = $item->asTodoTxt(); print $todo_fh $todo_txt; close $todo_fh; my $parser = TODO->parser(); my $new_item_from_text = $parser->parse($todo_text); my $new_item_from_file_handle = $parser->parseFile($todo_fh); my $new_item_from_file_name = $parser->parseFile('todo.txt');
Subject: Re: [rt.cpan.org #36857] No todo.pm
Date: Fri, 20 Jun 2008 10:24:36 -0400
To: bug-App-Todo [...] rt.cpan.org
From: Thomas Sibley <tsibley [...] cpan.org>
App::Todo, at the moment, is for todo.pl only, but it sounds like you want to take a look at Net::Hiveminder.