Skip to content

Commit

Permalink
Changed aliases for some commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathanael Farley committed Aug 6, 2018
1 parent a65ee0c commit 03948be
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ Usage: habash <command> [command arguments]
Contacts Habitica API through cURL with minimal dependencies.
Commands available:
Commands available (aliases separated with |):
ls
id <TASK TEXT>
up <TASK_TEXT>
up|done <TASK_TEXT>
down <TASK_TEXT>
delete <TASK_TEXT>
todo <TASK_TEXT>
habit <TASK_TEXT>
create-todo|ct <TASK_TEXT>
create-habit|ch <TASK_TEXT>
e.g.
habash done Use habash on the command line
Post issues at https://github.com/nasfarley88/habash/issues
```
Expand Down
41 changes: 22 additions & 19 deletions habash
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,25 @@ fi
habash_help()
{
cat <<-HELP
Usage: ${PROGRAM} <command> [command arguments]
${PROGRAM} up "Floss"
${PROGRAM} createtodo "Buy milk"
Contacts Habitica API through cURL with minimal dependencies.
Commands available:
ls
id <TASK TEXT>
up <TASK_TEXT>
down <TASK_TEXT>
delete <TASK_TEXT>
todo <TASK_TEXT>
habit <TASK_TEXT>
Post issues at https://github.com/nasfarley88/habash/issues
Usage: habash <command> [command arguments]
habash up "Floss"
habash createtodo "Buy milk"
Contacts Habitica API through cURL with minimal dependencies.
Commands available (aliases separated with |):
ls
id <TASK TEXT>
up|done <TASK_TEXT>
down <TASK_TEXT>
delete <TASK_TEXT>
create-todo|ct <TASK_TEXT>
create-habit|ch <TASK_TEXT>
e.g.
habash done Use habash on the command line
Post issues at https://github.com/nasfarley88/habash/issues
HELP
}

Expand Down Expand Up @@ -122,16 +125,16 @@ habash_main()
getidoftask|id)
habash_getidoftask $@
;;
createtodo|todo)
ct|create-todo|createtodo|todo)
habash_createtodo $@
;;
deletetask|delete)
habash_deletetask $@
;;
createhabit|habit)
ch|create-habit|createhabit|habit)
habash_createhabit $@
;;
up)
'done'|up)
habash_up $@
;;
down)
Expand Down

0 comments on commit 03948be

Please sign in to comment.