Skip to content

Commit

Permalink
Merge branch 'master' into extras
Browse files Browse the repository at this point in the history
* master:
  tests: Factor basic add/list, replace, priority testing out of t9999
  Added wiki front page link
  Consolidated docs under one header
  Added date detection for Macs
  Ported README to Textile
  • Loading branch information
doegox committed Apr 20, 2009
2 parents 61291f1 + 825c605 commit 2178fdb
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 174 deletions.
9 changes: 0 additions & 9 deletions README

This file was deleted.

26 changes: 26 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
h1. TODO.TXT Command Line Interface

A simple and extensible shell script for managing your todo.txt file.

h2. "Downloads":http://github.com/ginatrapani/todo.txt-cli/downloads

"Download the latest stable release":http://github.com/ginatrapani/todo.txt-cli/downloads for use on your desktop or server.

h2. "Documentation":http://wiki.github.com/ginatrapani/todo.txt-cli

* "User Documentation":http://wiki.github.com/ginatrapani/todo.txt-cli/user-documentation - Find out "how to install and use Todo.txt CLI":http://wiki.github.com/ginatrapani/todo.txt-cli/user-documentation, and get tips and tricks.

* "Developer Documentation":http://wiki.github.com/ginatrapani/todo.txt-cli/developer-documentation - "Contribute to Todo.txt CLI":http://wiki.github.com/ginatrapani/todo.txt-cli/developer-documentation and build your own custom add-ons.

h2. "Mailing List":http://groups.yahoo.com/group/todotxt/

Get support from users and developers on the "mailing list":http://groups.yahoo.com/group/todotxt/.

h2. Quick Links

* Original anemic release by "Gina Trapani":http://ginatrapani.org on 5/11/2006.
* Raised to great heights by "brainy and dedicated volunteers":http://github.com/ginatrapani/todo.txt-cli/network.
* Licensed under the "GPL":http://www.gnu.org/copyleft/gpl.html
* "Add-on Directory":http://wiki.github.com/ginatrapani/todo.txt-cli/todosh-add-on-directory
* "Changelog":http://wiki.github.com/ginatrapani/todo.txt-cli/todosh-changelog
* "Known Bugs":http://wiki.github.com/ginatrapani/todo.txt-cli/known-bugs
89 changes: 89 additions & 0 deletions tests/t1200-pri.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#!/bin/sh

test_description='basic priority functionality
'
. ./test-lib.sh

test_todo_session 'priority usage' <<EOF
>>> todo.sh pri B B
usage: $HOME/bin/todo.sh pri ITEM# PRIORITY
note: PRIORITY must be anywhere from A to Z.
=== 1
EOF

cat > todo.txt <<EOF
smell the uppercase Roses +flowers @outside
notice the sunflowers
stop
EOF
test_todo_session 'basic priority' <<EOF
>>> todo.sh list
2 notice the sunflowers
1 smell the uppercase Roses +flowers @outside
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 1 B
1: (B) smell the uppercase Roses +flowers @outside
TODO: 1 prioritized (B).
>>> todo.sh list
1 (B) smell the uppercase Roses +flowers @outside
2 notice the sunflowers
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 notice the sunflowers
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 C
2: (C) notice the sunflowers
TODO: 2 prioritized (C).
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) notice the sunflowers
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 A
2: (A) notice the sunflowers
TODO: 2 prioritized (A).
>>> todo.sh -p list
2 (A) notice the sunflowers
1 (B) smell the uppercase Roses +flowers @outside
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 a
2: (A) notice the sunflowers
TODO: 2 prioritized (A).
>>> todo.sh -p listpri
2 (A) notice the sunflowers
1 (B) smell the uppercase Roses +flowers @outside
--
TODO: 2 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh add "smell the coffee +wakeup"
TODO: 'smell the coffee +wakeup' added on line 4.
>>> todo.sh -p list
2 (A) notice the sunflowers
1 (B) smell the uppercase Roses +flowers @outside
4 smell the coffee +wakeup
3 stop
--
TODO: 4 of 4 tasks shown from $HOME/todo.txt
EOF

test_done
164 changes: 10 additions & 154 deletions tests/t9999-testsuite_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,140 +4,13 @@ test_description='basic tests imported from previous framework
'
. ./test-lib.sh

cat > todo.txt <<EOF
(B) smell the uppercase Roses +flowers @outside
(A) notice the sunflowers
stop
smell the coffee +wakeup
EOF
test_todo_session 'basic tests' <<EOF
>>> todo.sh add "notice the daisies"
TODO: 'notice the daisies' added on line 1.
>>> todo.sh list
1 notice the daisies
--
TODO: 1 of 1 tasks shown from $HOME/todo.txt
>>> todo.sh replace adf asdfa
usage: $HOME/bin/todo.sh replace ITEM# "UPDATED ITEM"
=== 1
>>> todo.sh replace 1 "smell the cows"
1: notice the daisies
replaced with
1: smell the cows
>>> todo.sh list
1 smell the cows
--
TODO: 1 of 1 tasks shown from $HOME/todo.txt
>>> todo.sh replace 1 smell the roses
1: smell the cows
replaced with
1: smell the roses
>>> todo.sh list
1 smell the roses
--
TODO: 1 of 1 tasks shown from $HOME/todo.txt
>>> todo.sh replace 1 smell the uppercase Roses
1: smell the roses
replaced with
1: smell the uppercase Roses
>>> todo.sh list
1 smell the uppercase Roses
--
TODO: 1 of 1 tasks shown from $HOME/todo.txt
>>> todo.sh list roses
1 smell the uppercase Roses
--
TODO: 1 of 1 tasks shown from $HOME/todo.txt
>>> todo.sh add notice the sunflowers
TODO: 'notice the sunflowers' added on line 2.
>>> todo.sh list
2 notice the sunflowers
1 smell the uppercase Roses
--
TODO: 2 of 2 tasks shown from $HOME/todo.txt
>>> todo.sh append 1 +flowers @outside
1: smell the uppercase Roses +flowers @outside
>>> todo.sh list
2 notice the sunflowers
1 smell the uppercase Roses +flowers @outside
--
TODO: 2 of 2 tasks shown from $HOME/todo.txt
>>> todo.sh add "stop"
TODO: 'stop' added on line 3.
>>> todo.sh list
2 notice the sunflowers
1 smell the uppercase Roses +flowers @outside
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri B B
usage: $HOME/bin/todo.sh pri ITEM# PRIORITY
note: PRIORITY must be anywhere from A to Z.
=== 1
>>> todo.sh pri 1 B
1: (B) smell the uppercase Roses +flowers @outside
TODO: 1 prioritized (B).
>>> todo.sh list
1 (B) smell the uppercase Roses +flowers @outside
2 notice the sunflowers
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 notice the sunflowers
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 C
2: (C) notice the sunflowers
TODO: 2 prioritized (C).
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) notice the sunflowers
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 A
2: (A) notice the sunflowers
TODO: 2 prioritized (A).
>>> todo.sh -p list
2 (A) notice the sunflowers
1 (B) smell the uppercase Roses +flowers @outside
3 stop
--
TODO: 3 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 a
2: (A) notice the sunflowers
TODO: 2 prioritized (A).
>>> todo.sh -p listpri
2 (A) notice the sunflowers
1 (B) smell the uppercase Roses +flowers @outside
--
TODO: 2 of 3 tasks shown from $HOME/todo.txt
>>> todo.sh add "smell the coffee +wakeup"
TODO: 'smell the coffee +wakeup' added on line 4.
>>> todo.sh -p list
2 (A) notice the sunflowers
1 (B) smell the uppercase Roses +flowers @outside
Expand Down Expand Up @@ -234,32 +107,15 @@ usage: $HOME/bin/todo.sh append ITEM# "TEXT TO APPEND"
--
TODO: 5 of 5 tasks shown from $HOME/todo.txt
>>> todo.sh pri 2 C
2: (C) stop and think
TODO: 2 prioritized (C).
>>> todo.sh replace 10 "hej!"
10: No such todo.
=== 1
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) stop and think
4 make the coffee +wakeup
3 smell the coffee +wakeup
5 visit http://example.com
--
TODO: 5 of 5 tasks shown from $HOME/todo.txt
>>> todo.sh append 10 "hej!"
10: No such todo.
=== 1
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) stop and think
4 make the coffee +wakeup
3 smell the coffee +wakeup
2 stop and think
5 visit http://example.com
--
TODO: 5 of 5 tasks shown from $HOME/todo.txt
Expand All @@ -270,9 +126,9 @@ TODO: 5 of 5 tasks shown from $HOME/todo.txt
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) stop and think
4 make the coffee +wakeup
3 smell the coffee +wakeup
2 stop and think
5 visit http://example.com
--
TODO: 5 of 5 tasks shown from $HOME/todo.txt
Expand All @@ -282,9 +138,9 @@ TODO: 'the coffee +wakeup' added on line 6.
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) stop and think
4 make the coffee +wakeup
3 smell the coffee +wakeup
2 stop and think
6 the coffee +wakeup
5 visit http://example.com
--
Expand All @@ -295,10 +151,10 @@ TODO: 6 of 6 tasks shown from $HOME/todo.txt
>>> todo.sh -p list
1 (B) smell the uppercase Roses +flowers @outside
2 (C) stop and think
4 make the coffee +wakeup
6 make the coffee +wakeup
3 smell the coffee +wakeup
2 stop and think
5 visit http://example.com
--
TODO: 6 of 6 tasks shown from $HOME/todo.txt
Expand Down
Loading

0 comments on commit 2178fdb

Please sign in to comment.