From 9ecfd73a0c02b2b1d2f16eff50fcae409df04af9 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 4 Feb 2020 14:44:16 +0800 Subject: update --- scripts/gist | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index 2ae69f8..58a2b78 100755 --- a/scripts/gist +++ b/scripts/gist @@ -6,24 +6,25 @@ # # gist # Description: Host your gists as local cloned git repo -# Usage: gist [command] [] +# Usage: gist [command] [] # -# [star | s] list your gists with format below, star for your starred gists: -# update [star | s] update the local list of your gists, star for your starred gists -# [number] [url] [file_num] [comment_num] [short description] -# show the path of local gist repo and files -# new [-d | --desc ""] ... -# create a new gist with files -# new [-d | --desc ""] [-f | --file ] < -# create a new gist from STDIN -# detail show the detail of a gist -# edit edit a gist description -# delete ... delete a gist -# clean clean removed gists in local -# config [token | user | folder | auto-sync |EDITOR | action [value] ] -# configuration -# user get gists from a given Github user -# help show this help message +# [star | s] list your gists with format below, star for your starred gists: +# [index_of_gist] [url] [file_num] [comment_num] [short description] +# update, u [star | s] update the local list of your gists, star for your starred gists +# show the path of local gist repo and files +# new, n [-d | --desc ] ... create a new gist with files +# new, n [-d | --desc ] [-f | --file ] < create a new gist from STDIN +# detail, d show the detail of a gist +# edit, e edit a gist description +# delete, D ... delete a gist +# clean, C clean removed gists in local +# config, c [token | user | folder | auto-sync | EDITOR | action [value] ] do configuration +# user, U get gists from a given Github user +# help, h show this help message +# +# Example: +# gist (Show your gists) +# gist 3 (show the repo path of your 3rd gist, and do custom actions) # # 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