aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-13 10:13:32 +0800
committertypebrook <typebrook@gmail.com>2020-01-13 10:13:32 +0800
commit48c94d770dbd51500c5a2d1841e536a4d5fbb9d3 (patch)
treefac1b35103d5e99f4ff75b5760ba5ceda771fd4c
parentb7172263b940a600c11368895e27e42450043239 (diff)
update
-rwxr-xr-xscripts/gist2
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 |\