Skip to content

Commit 17418ad

Browse files
committed
feat: add home subcommand for goto web page
1 parent 7bf0ec9 commit 17418ad

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ The `gh todo` or `gh todo list` where show todo list.
3434
gh todo --help
3535
# create `todo` repo
3636
gh todo init
37+
# goto `issues` web page
38+
gh todo home
3739
# show todo list
3840
gh todo
3941
# add todo item

gh-todo

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ init() {
3030
exec gh repo create --confirm --private --template=yuler/template-todo todo
3131
}
3232

33+
home() {
34+
gh issue list --web --repo $repo
35+
}
36+
3337
add() {
3438
input="$1"
3539
issue_id=$(get_issue_id)
@@ -71,6 +75,10 @@ while [ $# -gt 0 ]; do
7175
init
7276
shift
7377
;;
78+
home)
79+
home
80+
shift
81+
;;
7482
add)
7583
if [[ -z "$2" ]]; then
7684
echo -n "[Enter]: "

0 commit comments

Comments
 (0)