Skip to content

Commit

Permalink
Todo.sh usage spelling change.
Browse files Browse the repository at this point in the history
  • Loading branch information
the1ts committed Jan 9, 2015
1 parent b3e677c commit 42beab5
Show file tree
Hide file tree
Showing 32 changed files with 93 additions and 93 deletions.
2 changes: 1 addition & 1 deletion actions/contextview/contextview
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ shift
# Stop filter now and run in a controlled manner after the _list function is run
TODOTXT_DISABLE_FILTER=1

[ "$action" = "useage" ] && {
[ "$action" = "usage" ] && {
echo " $(basename $0) [TERM...]"
echo " Show todo items containing TERM, grouped by context, and displayed in"
echo " priority order. If no TERM provided, displays entire todo.txt."
Expand Down
2 changes: 1 addition & 1 deletion actions/contextview/cv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

[ "$1" = "useage" ] && exit 0
[ "$1" = "usage" ] && exit 0
shift

"$TODO_SH" contextview "$@"
4 changes: 2 additions & 2 deletions actions/enotes/ena
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
action=$1
shift

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" enotesarchive useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" enotesarchive usage
else
"$TODO_FULL_SH" enotesarchive "$@"
fi
4 changes: 2 additions & 2 deletions actions/enotes/enc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
action=$1
shift

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" enotescat useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" enotescat usage
else
"$TODO_FULL_SH" enotescat "$@"
fi
4 changes: 2 additions & 2 deletions actions/enotes/ene
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
action=$1
shift

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" enotesedit useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" enotesedit usage
else
"$TODO_FULL_SH" enotesedit "$@"
fi
2 changes: 1 addition & 1 deletion actions/enotes/enotesarchive
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License: GPL, http://www.gnu.org/copyleft/gpl.html

case $1 in
"useage")
"usage")
echo " $(basename $0)"
echo " archive encrypted notes files nolonger in todo file."
echo " If BASENAME is not given, defaults to 'todo'."
Expand Down
4 changes: 2 additions & 2 deletions actions/enotes/enotescat
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# License: GPL, http://www.gnu.org/copyleft/gpl.html

case $1 in
"useage")
"usage")
echo " $(basename $0) [NOTESFILE]"
echo " Cat encyrpted notes file, use lsenotes to get list of notes"
echo ""
;;

*)
if [ $# -lt 2 ]; then
$0 useage
$0 usage
exit 1
fi
NOTE_FILE=$(echo $2 | sed 's/^enote://g')
Expand Down
8 changes: 4 additions & 4 deletions actions/enotes/enotesedit
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
# 2011 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

useage () {
usage () {
echo " $(basename $0) [NOTESFILE]"
echo " Edit encrypted NOTESFILE in \$EDITOR."
echo " Use listenotes to show all encrypted notesfiles."
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
;;

*)
if [ $# -lt 2 ]; then
$0 useage
$0 usage
exit 1
fi
cd $TODO_DIR
Expand Down
10 changes: 5 additions & 5 deletions actions/enotes/listenotes
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
# 2009 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi
set -x
useage() {
usage() {
echo " $(basename $0)"
echo " List notes"
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
;;

"-h")
useage
usage
;;

*)
Expand Down
4 changes: 2 additions & 2 deletions actions/enotes/lsen
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" listenotes useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" listenotes usage
else
"$TODO_FULL_SH" listenotes "$@"
fi
10 changes: 5 additions & 5 deletions actions/lists/listactions
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/usr/bin/env bash
# 2009 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html
if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi

useage (){
usage (){
echo " $(basename $0)"
echo " list all possible actions"
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
exit 0
;;

"-h")
useage
usage
;;

*)
Expand Down
10 changes: 5 additions & 5 deletions actions/lists/listcontexts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
# 2011 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi

useage() {
usage() {
echo " $(basename $0)"
echo " List contexts"
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
;;

"-h")
useage
usage
;;

*)
Expand Down
10 changes: 5 additions & 5 deletions actions/lists/listprojects
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
# 2009 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi

useage() {
usage() {
echo " $(basename $0)"
echo " List projects"
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
;;

"-h")
useage
usage
;;

*)
Expand Down
4 changes: 2 additions & 2 deletions actions/lists/lsac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" listactions useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" listactions usage
else
"$TODO_FULL_SH" listactions "$@"
fi
4 changes: 2 additions & 2 deletions actions/lists/lsc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" listcontexts useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" listcontexts usage
else
"$TODO_FULL_SH" listcontexts "$@"
fi
4 changes: 2 additions & 2 deletions actions/lists/lsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" listprojects useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" listprojects usage
else
"$TODO_FULL_SH" listprojects "$@"
fi
10 changes: 5 additions & 5 deletions actions/lists/lsprjnopri
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# 2011 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi

useage() {
usage() {
echo " $(basename $0)"
echo " List projects with no priorities set"
echo ""
Expand All @@ -25,12 +25,12 @@ COLOR_DONE=$NONE
TODOTXT_VERBOSE=0

case $1 in
"useage")
useage
"usage")
usage
;;

"-h")
useage
usage
;;

*)
Expand Down
12 changes: 6 additions & 6 deletions actions/lists/prels
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
# 2011 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi

useage() {
usage() {
echo " $(basename $0)"
echo " Prepend something to list command"
echo " useage:"
echo " usage:"
echo " todo.sh prels prepend text"
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
;;

"-h")
useage
usage
;;

*)
Expand Down
10 changes: 5 additions & 5 deletions actions/notes/listnotes
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
# 2009 Paul Mansfield <paul.mansfield@mansteck.co.uk>
# License: GPL, http://www.gnu.org/copyleft/gpl.html

if [ $1 != "useage" ]; then
if [ $1 != "usage" ]; then
action=$1;shift
fi

useage() {
usage() {
echo " $(basename $0)"
echo " List notes"
echo ""
}

case $1 in
"useage")
useage
"usage")
usage
;;

"-h")
useage
usage
;;

*)
Expand Down
4 changes: 2 additions & 2 deletions actions/notes/lsn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" listnotes useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" listnotes usage
else
"$TODO_FULL_SH" listnotes "$@"
fi
4 changes: 2 additions & 2 deletions actions/notes/na
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
action=$1
shift

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" notesarchive useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" notesarchive usage
else
"$TODO_FULL_SH" notesarchive "$@"
fi
4 changes: 2 additions & 2 deletions actions/notes/nc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
action=$1
shift

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" notescat useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" notescat usage
else
"$TODO_FULL_SH" notescat "$@"
fi
4 changes: 2 additions & 2 deletions actions/notes/ne
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
action=$1
shift

if [ "$1" = "useage" ]; then
"$TODO_FULL_SH" notesedit useage
if [ "$1" = "usage" ]; then
"$TODO_FULL_SH" notesedit usage
else
"$TODO_FULL_SH" notesedit "$@"
fi
Loading

0 comments on commit 42beab5

Please sign in to comment.