diff options
author | typebrook <typebrook@gmail.com> | 2020-02-04 14:44:16 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-04 14:44:16 +0800 |
commit | 9ecfd73a0c02b2b1d2f16eff50fcae409df04af9 (patch) | |
tree | 367cb0073001eda89d495ab5e7521cb852f50a9d | |
parent | 218d1aa9d2a07da4f849037fa311415a1cf066d3 (diff) |
update
-rwxr-xr-x | scripts/gist | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/scripts/gist b/scripts/gist index 2ae69f8..58a2b78 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -6,24 +6,25 @@ | |||
6 | # | 6 | # |
7 | # gist | 7 | # gist |
8 | # Description: Host your gists as local cloned git repo | 8 | # Description: Host your gists as local cloned git repo |
9 | # Usage: gist [command] [<arg>] | 9 | # Usage: gist [command] [<args>] |
10 | # | 10 | # |
11 | # [star | s] list your gists with format below, star for your starred gists: | 11 | # [star | s] list your gists with format below, star for your starred gists: |
12 | # update [star | s] update the local list of your gists, star for your starred gists | 12 | # [index_of_gist] [url] [file_num] [comment_num] [short description] |
13 | # [number] [url] [file_num] [comment_num] [short description] | 13 | # update, u [star | s] update the local list of your gists, star for your starred gists |
14 | # <index_of_gist> show the path of local gist repo and files | 14 | # <index_of_gist> show the path of local gist repo and files |
15 | # new [-d | --desc "<gist-description>"] <files>... | 15 | # new, n [-d | --desc <description>] <files>... create a new gist with files |
16 | # create a new gist with files | 16 | # new, n [-d | --desc <description>] [-f | --file <file_name>] < <file-with-content> create a new gist from STDIN |
17 | # new [-d | --desc "<gist-description>"] [-f | --file <file_name>] < <file-with-content> | 17 | # detail, d <index_of_gist> show the detail of a gist |
18 | # create a new gist from STDIN | 18 | # edit, e <index_of_gist> edit a gist description |
19 | # detail <index_of_gist> show the detail of a gist | 19 | # delete, D <index_of_gist>... delete a gist |
20 | # edit <index_of_gist> edit a gist description | 20 | # clean, C clean removed gists in local |
21 | # delete <index_of_gist>... delete a gist | 21 | # config, c [token | user | folder | auto-sync | EDITOR | action [value] ] do configuration |
22 | # clean clean removed gists in local | 22 | # user, U <user> get gists from a given Github user |
23 | # config [token | user | folder | auto-sync |EDITOR | action [value] ] | 23 | # help, h show this help message |
24 | # configuration | 24 | # |
25 | # user <user> get gists from a given Github user | 25 | # Example: |
26 | # help show this help message | 26 | # gist (Show your gists) |
27 | # gist 3 (show the repo path of your 3rd gist, and do custom actions) | ||
27 | # | 28 | # |
28 | # Since now a gist is a local cloned repo | 29 | # Since now a gist is a local cloned repo |
29 | # It is your business to do git commit and git push | 30 | # It is your business to do git commit and git push |