mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
dd8bceecf7
commit
9470e9af17
22 changed files with 173 additions and 50 deletions
|
@ -41,11 +41,11 @@ if (open my $fh, '>', 'shell.rc')
|
|||
}
|
||||
|
||||
# Test the prompt.
|
||||
my $output = qx{echo "\\nquit\\n" | ../src/task rc:shell.rc shell};
|
||||
my $output = qx{echo "-- \\nquit\\n" | ../src/task rc:shell.rc shell};
|
||||
like ($output, qr/testprompt>/, 'custom prompt is being used');
|
||||
|
||||
# Test a simple add, then info.
|
||||
$output = qx{echo "add foo\ninfo 1\n" | ../src/task rc:shell.rc shell};
|
||||
$output = qx{echo "-- add foo\ninfo 1\n" | ../src/task rc:shell.rc shell};
|
||||
like ($output, qr/Description\s+foo/, 'add/info working');
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue