mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature Pulled
- Removed the feature that allows commands to be piped in to stdin, and appended to any existing command line. This feature is conditionally compiled, controlled by the FEATURE_STDIN define in main.h - Many unit tests contained "echo '-- y'", and now use "echo 'y'" because the '--' is no longer supported on stdin. - Thanks to the IRC team for testing, including Bryce Harrington, Sam Stuck, Owen Clarke, Greg Grossmeier.
This commit is contained in:
parent
80d6655709
commit
ac4d90f1f6
18 changed files with 66 additions and 65 deletions
|
@ -42,12 +42,12 @@ if (open my $fh, '>', 'shell.rc')
|
|||
}
|
||||
|
||||
# Test the prompt.
|
||||
my $output = qx{echo "-- quit" | ../src/task rc:shell.rc shell};
|
||||
my $output = qx{echo "quit" | ../src/task rc:shell.rc shell};
|
||||
like ($output, qr/testprompt>/, 'custom prompt is being used');
|
||||
|
||||
# Test a simple add, then info.
|
||||
qx{echo "-- add foo" | ../src/task rc:shell.rc shell};
|
||||
$output = qx{echo "-- 1 info" | ../src/task rc:shell.rc shell};
|
||||
qx{echo "add foo" | ../src/task rc:shell.rc shell};
|
||||
$output = qx{echo "1 info" | ../src/task rc:shell.rc shell};
|
||||
like ($output, qr/Description\s+foo/, 'add/info working');
|
||||
|
||||
unlink 'shell.rc';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue