diff --git a/README.md b/README.md index 9e0cb2a..9abde42 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ First, you need run `gh todo init`. It will create `todo` repo in your GitHub ac Then you can use `gh todo add` to add new task. It will create an issue with today(yyyy-MM-dd) as the title in `todo` repo. -You can specify the issue title with `--scope`. The default is today(yyyy-MM-dd). Current support [yesterday, tommorow, week, month, year]. Any other will be used directly as issue title. +You can specify the issue title with `--scope`. The default is today(yyyy-MM-dd). Current support [yesterday, tomorrow, week, month, year]. Any other will be used directly as issue title. The `gh todo` or `gh todo list` where show todo list. diff --git a/gh-todo b/gh-todo index 8e9088e..aad648b 100755 --- a/gh-todo +++ b/gh-todo @@ -19,14 +19,14 @@ Options: --version Show version --help Show help for command --scope TODO scope, default: today(yyyy-MM-dd). - Support [yesterday, tommorow, weekly, monthly, yearly]. + Support [yesterday, tomorrow, weekly, monthly, yearly]. Any other will be used directly as issue title. Examples: gh todo add abc EOF } -version="0.4.0" +version="0.4.1" repo="$(gh config get -h github.com user)/todo" @@ -61,7 +61,7 @@ get_issue_id() { yesterday) issue_title=$(date -v-1d +"%Y-%m-%d") ;; - tommorow) + tomorrow) issue_title=$(date -v+1d +"%Y-%m-%d") ;; week)