Changeset 1164

Show
Ignore:
Timestamp:
11/06/07 10:41:59 (6 years ago)
Author:
tokuhirom
Message:

todo-pl-wassr: added 'add' command(requested by otsune++)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/misc/todo-pl-wassr/wassr-todo.pl

    • Property svn:executable set to *
    r528 r1164  
    99 
    1010package Net::Wassr::TODO; 
    11  
     11use strict; 
     12use warnings; 
    1213use JSON::Syck; 
    1314use Carp; 
     
    132133            unlink $fn; 
    133134        } 
     135        case 'add' { 
     136            my $body = join " ", @ARGV; 
     137            die "todo body empty" unless $body; 
     138            print $c->add($body), "\n"; 
     139        } 
    134140        else { 
    135141            die "unknown command $command";