aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gist b/scripts/gist
index b55012b..007032b 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -107,7 +107,7 @@ _show_detail() {
107 jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}' 107 jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}'
108} 108}
109 109
110# create a new gist with a file and description 110# create a new gist with files
111# TODO support folder of files 111# TODO support folder of files
112_create_gist() { 112_create_gist() {
113 echo -n 'description: ' 113 echo -n 'description: '
@@ -124,7 +124,7 @@ _create_gist() {
124 description: ($DESC) 124 description: ($DESC)
125 }' |\ 125 }' |\
126 curl -s -H "$auth_header" --data @- $github_api/gists > /dev/null && \ 126 curl -s -H "$auth_header" --data @- $github_api/gists > /dev/null && \
127 _update 127 _update && _sync_repos
128} 128}
129 129
130# update description of a gist 130# update description of a gist