diff options
author | typebrook <typebrook@gmail.com> | 2020-01-13 10:13:32 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-13 10:13:32 +0800 |
commit | 48c94d770dbd51500c5a2d1841e536a4d5fbb9d3 (patch) | |
tree | fac1b35103d5e99f4ff75b5760ba5ceda771fd4c /scripts/gist | |
parent | b7172263b940a600c11368895e27e42450043239 (diff) |
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gist b/scripts/gist index 7299d41..3f511e5 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -60,6 +60,7 @@ _show_list() { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | # get the list of gists | 62 | # get the list of gists |
63 | # TODO support secret gist | ||
63 | _update() { | 64 | _update() { |
64 | curl -s -H "$auth_header" $github_api/users/$user/gists |\ | 65 | curl -s -H "$auth_header" $github_api/users/$user/gists |\ |
65 | tee jojo |\ | 66 | tee jojo |\ |
@@ -126,6 +127,7 @@ _clean_repos() { | |||
126 | done | 127 | done |
127 | } | 128 | } |
128 | 129 | ||
130 | # TODO star count | ||
129 | _show_detail() { | 131 | _show_detail() { |
130 | GIST_ID=$(_gist_id $1) | 132 | GIST_ID=$(_gist_id $1) |
131 | curl -s -H "$auth_header" $github_api/gists/$GIST_ID |\ | 133 | curl -s -H "$auth_header" $github_api/gists/$GIST_ID |\ |