aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist49
1 files changed, 27 insertions, 22 deletions
diff --git a/gist b/gist
index 9edd8ca..83f6c62 100755
--- a/gist
+++ b/gist
@@ -8,33 +8,38 @@
8# Description: Manage your gists with git and Github API v3 8# Description: Manage your gists with git and Github API v3
9# Usage: gist [command] [<args>] 9# Usage: gist [command] [<args>]
10# 10#
11# [star | s] List your gists, use argument 'star' for your starred gists. Format is like: 11# [star|s|all|a] List your gists, use 'star' or 's' for your starred gists,
12# <index_of_gist> <url> <file_num> <comment_num> <description> 12# 'all' or 'a' for both your and starred gists. Format for each line is:
13# fetch, f [star | s] Update the local list of your gists, 'star' for your starred gists 13# <INDEX> <URL> <FILE_NUM> <COMMENT_NUM> <DESCRIPTION>
14# <index_of_gist> [--no-action] Show the path of local gist repo and do custom actions 14# fetch, f [star|s] Update the local list of your gists, 'star' for your starred gists
15# new, n [-d | --desc <description>] [-p] <file1> <file2>... create a new gist with files 15# <INDEX> [--no-action] Show the path of local gist repo and do custom actions
16# new, n [-d | --desc <description>] [-p] [-f | --file <file_name>] create a new gist from STDIN 16# new, n [-d |--desc <description>] [-p] <FILE>... create a new gist with files
17# detail, d <index_of_gist> Show the detail of a gist 17# new, n [-d |--desc <description>] [-p] [-f|--file <FILE_NAME>] create a new gist from STDIN
18# edit, e <index_of_gist> Edit a gist's description 18# grep, g <PATTERN> Grep gists by description, filename and content with a given pattern
19# delete, D <index_of_gist>... [--force] Delete a gist 19# tag, t <INDEX> Modify tags for a gist
20# clean, C Clean removed gists in local 20# tag, t <TAG>... Grep gists with tags
21# config, c [token | user | folder | auto_sync | EDITOR | action | protocol [value] ] Do configuration 21# tag, t List gist with tags and pinned tags
22# user, u <user> Get gists from a given Github user 22# pin, p <TAG>... Pin/Unpin tags
23# grep, g <pattern> Grep gists by a given pattern 23# pin, p Grep gists with pinned tags
24# push, p <index_of_gist> Push changes by git (well, better to make commit by youself) 24# detail, d <INDEX> Show the detail of a gist
25# github, G <index_of_gist> Import selected gist as a new Github repo 25# edit, e <INDEX> ["NEW_DESCRIPTRION"] Edit a gist's description
26# delete, D <INDEX>... [--force] Delete gists by given indices
27# push, P <INDEX> Push changes by git (well, better to make commit by youself)
28# clean, C Clean local repos of removed gists
29# config, c [token|user|folder|auto_sync|EDITOR|action|protocol [value]] Do configuration
30# user, u <USER> Get list of gists with a given Github user
31# github, G <INDEX> Import selected gist as a new Github repo
26# help, h Show this help message 32# help, h Show this help message
27# version Get the tool version 33# version Get the tool version
28# update Update Bash-Snippet Tools 34# update Update Bash-Snippet Tools
29# 35#
30# Example: 36# Example:
31# gist (Show your gists) 37# gist (Show your gists)
32# gist star (Show your starred gists) 38# gist tag (Show your gists with tags)
33# gist fetch (update the list of gists from github.com) 39# gist fetch (update the list of gists from github.com)
34# gist fetch star (update the list of starred gists from github.com) 40# gist 3 (show the repo path of your 3rd gist, and do custom actions)
35# gist 3 (show the repo path of your 3rd gist, and do custom actions) 41# gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions)
36# gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions) 42# gist new --desc bar foo (create a new gist with files and description)
37# gist new --desc bar foo (create a new gist with file and description)
38# 43#
39# Since now a gist is a local cloned repo 44# Since now a gist is a local cloned repo
40# It is your business to do git commit and git push 45# It is your business to do git commit and git push