From d8a9585c8195632cb351db8fa7f0eb9901dd8d5b Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 24 Mar 2020 17:40:11 +0800 Subject: Update helper message --- gist | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/gist b/gist index 9edd8ca..83f6c62 100755 --- a/gist +++ b/gist @@ -8,33 +8,38 @@ # Description: Manage your gists with git and Github API v3 # Usage: gist [command] [] # -# [star | s] List your gists, use argument 'star' for your starred gists. Format is like: -# -# fetch, f [star | s] Update the local list of your gists, 'star' for your starred gists -# [--no-action] Show the path of local gist repo and do custom actions -# new, n [-d | --desc ] [-p] ... create a new gist with files -# new, n [-d | --desc ] [-p] [-f | --file ] create a new gist from STDIN -# detail, d Show the detail of a gist -# edit, e Edit a gist's description -# delete, D ... [--force] Delete a gist -# clean, C Clean removed gists in local -# config, c [token | user | folder | auto_sync | EDITOR | action | protocol [value] ] Do configuration -# user, u Get gists from a given Github user -# grep, g Grep gists by a given pattern -# push, p Push changes by git (well, better to make commit by youself) -# github, G Import selected gist as a new Github repo +# [star|s|all|a] List your gists, use 'star' or 's' for your starred gists, +# 'all' or 'a' for both your and starred gists. Format for each line is: +# +# fetch, f [star|s] Update the local list of your gists, 'star' for your starred gists +# [--no-action] Show the path of local gist repo and do custom actions +# new, n [-d |--desc ] [-p] ... create a new gist with files +# new, n [-d |--desc ] [-p] [-f|--file ] create a new gist from STDIN +# grep, g Grep gists by description, filename and content with a given pattern +# tag, t Modify tags for a gist +# tag, t ... Grep gists with tags +# tag, t List gist with tags and pinned tags +# pin, p ... Pin/Unpin tags +# pin, p Grep gists with pinned tags +# detail, d Show the detail of a gist +# edit, e ["NEW_DESCRIPTRION"] Edit a gist's description +# delete, D ... [--force] Delete gists by given indices +# push, P Push changes by git (well, better to make commit by youself) +# clean, C Clean local repos of removed gists +# config, c [token|user|folder|auto_sync|EDITOR|action|protocol [value]] Do configuration +# user, u Get list of gists with a given Github user +# github, G Import selected gist as a new Github repo # help, h Show this help message # version Get the tool version # update Update Bash-Snippet Tools # # Example: -# gist (Show your gists) -# gist star (Show your starred gists) -# gist fetch (update the list of gists from github.com) -# gist fetch star (update the list of starred gists from github.com) -# gist 3 (show the repo path of your 3rd gist, and do custom actions) -# gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions) -# gist new --desc bar foo (create a new gist with file and description) +# gist (Show your gists) +# gist tag (Show your gists with tags) +# gist fetch (update the list of gists from github.com) +# gist 3 (show the repo path of your 3rd gist, and do custom actions) +# gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions) +# gist new --desc bar foo (create a new gist with files and description) # # Since now a gist is a local cloned repo # It is your business to do git commit and git push -- cgit v1.2.3-70-g09d2