Aligned verbose message output of tasks with normal task output.
I.e. removed the colon after the ITEM#. Updated tasks are now listed like the 'todo.sh ls' command does, e.g.
42 smell the roses
This is in preparation to eventually use a function factored out from _list() for the verbose task output, which would enable coloring in the verbose message and thus align the verbose message output even more with the normal task output.
This commit is contained in:
@@ -19,9 +19,9 @@ EOF
|
||||
|
||||
test_todo_session 'basic replace' <<EOF
|
||||
>>> todo.sh replace 1 "smell the cows"
|
||||
1: notice the daisies
|
||||
1 notice the daisies
|
||||
TODO: Replaced task with:
|
||||
1: smell the cows
|
||||
1 smell the cows
|
||||
|
||||
>>> todo.sh list
|
||||
1 smell the cows
|
||||
@@ -29,9 +29,9 @@ TODO: Replaced task with:
|
||||
TODO: 1 of 1 tasks shown
|
||||
|
||||
>>> todo.sh replace 1 smell the roses
|
||||
1: smell the cows
|
||||
1 smell the cows
|
||||
TODO: Replaced task with:
|
||||
1: smell the roses
|
||||
1 smell the roses
|
||||
|
||||
>>> todo.sh list
|
||||
1 smell the roses
|
||||
@@ -47,42 +47,42 @@ chase the chickens
|
||||
EOF
|
||||
test_todo_session 'replace in multi-item file' <<EOF
|
||||
>>> todo.sh replace 1 smell the cheese
|
||||
1: smell the cows
|
||||
1 smell the cows
|
||||
TODO: Replaced task with:
|
||||
1: smell the cheese
|
||||
1 smell the cheese
|
||||
|
||||
>>> todo.sh replace 3 jump on hay
|
||||
3: thrash some hay
|
||||
3 thrash some hay
|
||||
TODO: Replaced task with:
|
||||
3: jump on hay
|
||||
3 jump on hay
|
||||
|
||||
>>> todo.sh replace 4 collect the eggs
|
||||
4: chase the chickens
|
||||
4 chase the chickens
|
||||
TODO: Replaced task with:
|
||||
4: collect the eggs
|
||||
4 collect the eggs
|
||||
EOF
|
||||
|
||||
test_todo_session 'replace with priority' <<EOF
|
||||
>>> todo.sh pri 4 a
|
||||
4: (A) collect the eggs
|
||||
4 (A) collect the eggs
|
||||
TODO: 4 prioritized (A).
|
||||
|
||||
>>> todo.sh replace 4 "collect the bread"
|
||||
4: (A) collect the eggs
|
||||
4 (A) collect the eggs
|
||||
TODO: Replaced task with:
|
||||
4: (A) collect the bread
|
||||
4 (A) collect the bread
|
||||
|
||||
>>> todo.sh replace 4 collect the eggs
|
||||
4: (A) collect the bread
|
||||
4 (A) collect the bread
|
||||
TODO: Replaced task with:
|
||||
4: (A) collect the eggs
|
||||
4 (A) collect the eggs
|
||||
EOF
|
||||
|
||||
test_todo_session 'replace with &' << EOF
|
||||
>>> todo.sh replace 3 "thrash the hay & thresh the wheat"
|
||||
3: jump on hay
|
||||
3 jump on hay
|
||||
TODO: Replaced task with:
|
||||
3: thrash the hay & thresh the wheat
|
||||
3 thrash the hay & thresh the wheat
|
||||
EOF
|
||||
|
||||
test_todo_session 'replace error' << EOF
|
||||
@@ -94,41 +94,41 @@ EOF
|
||||
cat /dev/null > todo.txt
|
||||
test_todo_session 'replace handling prepended date on add' <<EOF
|
||||
>>> todo.sh -t add "new task"
|
||||
1: 2009-02-13 new task
|
||||
1 2009-02-13 new task
|
||||
TODO: 1 added.
|
||||
|
||||
>>> todo.sh replace 1 this is just a new one
|
||||
1: 2009-02-13 new task
|
||||
1 2009-02-13 new task
|
||||
TODO: Replaced task with:
|
||||
1: 2009-02-13 this is just a new one
|
||||
1 2009-02-13 this is just a new one
|
||||
|
||||
>>> todo.sh replace 1 2010-07-04 this also has a new date
|
||||
1: 2009-02-13 this is just a new one
|
||||
1 2009-02-13 this is just a new one
|
||||
TODO: Replaced task with:
|
||||
1: 2010-07-04 this also has a new date
|
||||
1 2010-07-04 this also has a new date
|
||||
EOF
|
||||
|
||||
cat /dev/null > todo.txt
|
||||
test_todo_session 'replace handling priority and prepended date on add' <<EOF
|
||||
>>> todo.sh -t add "new task"
|
||||
1: 2009-02-13 new task
|
||||
1 2009-02-13 new task
|
||||
TODO: 1 added.
|
||||
|
||||
>>> todo.sh pri 1 A
|
||||
1: (A) 2009-02-13 new task
|
||||
1 (A) 2009-02-13 new task
|
||||
TODO: 1 prioritized (A).
|
||||
|
||||
>>> todo.sh replace 1 this is just a new one
|
||||
1: (A) 2009-02-13 new task
|
||||
1 (A) 2009-02-13 new task
|
||||
TODO: Replaced task with:
|
||||
1: (A) 2009-02-13 this is just a new one
|
||||
1 (A) 2009-02-13 this is just a new one
|
||||
EOF
|
||||
|
||||
test_todo_session 'replace with prepended date replaces existing date' <<EOF
|
||||
>>> todo.sh replace 1 2010-07-04 this also has a new date
|
||||
1: (A) 2009-02-13 this is just a new one
|
||||
1 (A) 2009-02-13 this is just a new one
|
||||
TODO: Replaced task with:
|
||||
1: (A) 2010-07-04 this also has a new date
|
||||
1 (A) 2010-07-04 this also has a new date
|
||||
EOF
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user