New 'ids' command, and stdin reading
- New 'ids' command that returns a filtered set of task ID numbers, instead of the actual tasks. For advanced pipeline use. - Now supplements the command line with data read from standard input, which allows commands like: echo 'add Pay the bills' | task
This commit is contained in:
@@ -47,8 +47,8 @@ my $output = qx{../src/task rc:seq.rc info 1};
|
||||
like ($output, qr/Status\s+Completed/, 'sequence do 1');
|
||||
$output = qx{../src/task rc:seq.rc info 2};
|
||||
like ($output, qr/Status\s+Completed/, 'sequence do 2');
|
||||
qx{echo 'y'|../src/task rc:seq.rc undo};
|
||||
qx{echo 'y'|../src/task rc:seq.rc undo};
|
||||
qx{../src/task rc:seq.rc undo};
|
||||
qx{../src/task rc:seq.rc undo};
|
||||
$output = qx{../src/task rc:seq.rc info 1};
|
||||
like ($output, qr/Status\s+Pending/, 'sequence undo 1');
|
||||
$output = qx{../src/task rc:seq.rc info 2};
|
||||
@@ -60,8 +60,8 @@ $output = qx{../src/task rc:seq.rc info 1};
|
||||
like ($output, qr/Status\s+Deleted/, 'sequence delete 1');
|
||||
$output = qx{../src/task rc:seq.rc info 2};
|
||||
like ($output, qr/Status\s+Deleted/, 'sequence delete 2');
|
||||
qx{echo 'y'|../src/task rc:seq.rc undo};
|
||||
qx{echo 'y'|../src/task rc:seq.rc undo};
|
||||
qx{../src/task rc:seq.rc undo};
|
||||
qx{../src/task rc:seq.rc undo};
|
||||
$output = qx{../src/task rc:seq.rc info 1};
|
||||
like ($output, qr/Status\s+Pending/, 'sequence undo 1');
|
||||
$output = qx{../src/task rc:seq.rc info 2};
|
||||
|
||||
Reference in New Issue
Block a user