diff --git a/README.md b/README.md index 68a9f3f..86573f5 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,17 @@ Usage: habash [command arguments] Contacts Habitica API through cURL with minimal dependencies. -Commands available: +Commands available (aliases separated with |): ls id - up + up|done down delete - todo - habit + create-todo|ct + create-habit|ch + +e.g. + habash done Use habash on the command line Post issues at https://github.com/nasfarley88/habash/issues ``` diff --git a/habash b/habash index f10a1c3..02cf14f 100755 --- a/habash +++ b/habash @@ -11,22 +11,25 @@ fi habash_help() { cat <<-HELP - Usage: ${PROGRAM} [command arguments] - ${PROGRAM} up "Floss" - ${PROGRAM} createtodo "Buy milk" - - Contacts Habitica API through cURL with minimal dependencies. - - Commands available: - ls - id - up - down - delete - todo - habit - - Post issues at https://github.com/nasfarley88/habash/issues + Usage: habash [command arguments] + habash up "Floss" + habash createtodo "Buy milk" + + Contacts Habitica API through cURL with minimal dependencies. + + Commands available (aliases separated with |): + ls + id + up|done + down + delete + create-todo|ct + create-habit|ch + + e.g. + habash done Use habash on the command line + + Post issues at https://github.com/nasfarley88/habash/issues HELP } @@ -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)