@@ -15,11 +15,40 @@ const (
15
15
DefaultGistName = "a"
16
16
)
17
17
18
- var config = ConfigNew ()
18
+ var config = NewConfig ()
19
19
20
20
func main () {
21
21
config .Load ()
22
22
23
+ // usage := `go-gist
24
+ //
25
+ //go-gist lets you upload to https://gist.github.com/. Go clone of the official Gist client.
26
+ //
27
+ //Usage:
28
+ // go-gist (-o|-c|-e) [-p] [-s] [-R] [-d DESC] [-a] [-u URL] [-P] (-f NAME | -t EXT) FILE...
29
+ // go-gist --login
30
+ //
31
+ //Options:
32
+ // --login Authenticate gist on this computer.
33
+ // -f NAME --filename=NAME Sets the filename and syntax type.
34
+ // -t EXT --type=EXT Sets the file extension and syntax type.
35
+ // -p --private Indicates whether the gist is private.
36
+ // -d DESC --description=DESC Adds a description to your gist.
37
+ // -s --shorten *Shorten the gist URL using git.io.
38
+ // -u URL --update=URL Update an existing gist.
39
+ // -a --anonymous Create an anonymous gist.
40
+ // -c --copy Copy the resulting URL to the clipboard.
41
+ // -e --embed *Copy the embed code for the gist to the clipboard.
42
+ // -o --open *Open the resulting URL in a browser.
43
+ // -P --paste Paste from the clipboard to gist.
44
+ // -R --raw *Display raw URL of the new gist.
45
+ // -l USER --list=USER Lists all gists for a user.
46
+ // -h --help Show this help message and exit.
47
+ // --version Show version and exit.`
48
+ //
49
+ // arguments, err := docopt.Parse(usage, nil, true, "go-gist "+VERSION, false)
50
+ // fmt.Println(arguments)
51
+
23
52
anonymousFlag := flag .Bool ("a" , false , "Create an anonymous gist." )
24
53
copyFlag := flag .Bool ("c" , false , "Copy the resulting URL to the clipboard." )
25
54
listFlag := flag .Bool ("l" , false , "List gists." )
0 commit comments