Only print the added report line, not entire report.
I think this makes much more sense, especially once the report gets very long. (One can always use "cat" to view the entire report.)
This commit is contained in:
@@ -88,11 +88,6 @@ TODO: 5 of 5 tasks shown
|
|||||||
TODO: Report file updated.
|
TODO: Report file updated.
|
||||||
2009-02-13-04:40:00 5 1
|
2009-02-13-04:40:00 5 1
|
||||||
|
|
||||||
>>> todo.sh report
|
|
||||||
TODO: Report file updated.
|
|
||||||
2009-02-13-04:40:00 5 1
|
|
||||||
2009-02-13-04:40:00 5 1
|
|
||||||
|
|
||||||
>>> todo.sh append g a
|
>>> todo.sh append g a
|
||||||
usage: todo.sh append ITEM# "TEXT TO APPEND"
|
usage: todo.sh append ITEM# "TEXT TO APPEND"
|
||||||
=== 1
|
=== 1
|
||||||
@@ -162,6 +157,18 @@ TODO: 6 of 6 tasks shown
|
|||||||
--
|
--
|
||||||
TODO: 6 of 6 tasks shown
|
TODO: 6 of 6 tasks shown
|
||||||
|
|
||||||
|
>>> todo.sh -a do 3
|
||||||
|
3 x 2009-02-13 smell the coffee +wakeup
|
||||||
|
TODO: 3 marked as done.
|
||||||
|
|
||||||
|
>>> todo.sh report
|
||||||
|
TODO: Report file updated.
|
||||||
|
2009-02-13-04:40:00 5 2
|
||||||
|
|
||||||
|
>>> todo.sh report
|
||||||
|
TODO: Report file updated.
|
||||||
|
2009-02-13-04:40:00 5 2
|
||||||
|
|
||||||
>>> todo.sh remdup
|
>>> todo.sh remdup
|
||||||
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
|
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
|
||||||
Try 'todo.sh -h' for more information.
|
Try 'todo.sh -h' for more information.
|
||||||
|
|||||||
2
todo.sh
2
todo.sh
@@ -1197,7 +1197,7 @@ note: PRIORITY must be anywhere from A to Z."
|
|||||||
echo ${TDONE:-0})
|
echo ${TDONE:-0})
|
||||||
echo $TECHO >> "$REPORT_FILE"
|
echo $TECHO >> "$REPORT_FILE"
|
||||||
[ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated."
|
[ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated."
|
||||||
cat "$REPORT_FILE"
|
sed -ne '$p' "$REPORT_FILE"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
* )
|
* )
|
||||||
|
|||||||
Reference in New Issue
Block a user