From 7900ad7e1b71bee1b828ecb154bbe6959294a83f Mon Sep 17 00:00:00 2001 From: Tom Scogland Date: Wed, 9 Mar 2011 12:00:15 -0500 Subject: [PATCH] Added sed line to allow priorities to be added on the command line with auto add date enabled. Inserted test for this case in the t1010-add-date.sh test case. --- tests/t1010-add-date.sh | 16 ++++++++++++++++ todo.sh | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/t1010-add-date.sh b/tests/t1010-add-date.sh index bb9632c..abb345d 100755 --- a/tests/t1010-add-date.sh +++ b/tests/t1010-add-date.sh @@ -21,6 +21,22 @@ TODO: 1 added. TODO: 1 of 1 tasks shown EOF +test_todo_session 'cmd line first day with priority' <>> todo.sh -pt add '(A) notice the daisies' +2 (A) 2009-02-13 notice the daisies +TODO: 2 added. + +>>> todo.sh -p list +2 (A) 2009-02-13 notice the daisies +1 2009-02-13 notice the daisies +-- +TODO: 2 of 2 tasks shown + +>>> todo.sh -npf del 2 +2 (A) 2009-02-13 notice the daisies +TODO: 2 deleted. +EOF + test_tick test_todo_session 'cmd line second day' <> "$file" if [ $TODOTXT_VERBOSE -gt 0 ]; then