File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ $ stdin | gistup
18
18
The github gist opens automatically in the browser.
19
19
If the browser can not be opened, the URL will be displayed.
20
20
21
+ The token is saved in the following file and omitting the user name and password entry from next time:
22
+
23
+ * macOS, Linux
24
+ * ` ~/.config/gistup/token `
25
+ * Windows
26
+ * ` %APPDATA%\gistup\token `
27
+
21
28
### Options
22
29
23
30
* ` -a `
Original file line number Diff line number Diff line change @@ -47,7 +47,14 @@ func main() {
47
47
log .SetPrefix (fmt .Sprintf ("%s: " , os .Args [0 ]))
48
48
flag .Usage = func () {
49
49
fmt .Fprintf (os .Stderr , "usage: %s [-a] [-d <description>] [-insecure] [-p] [-url <api_baseurl>] <file>...\n " , os .Args [0 ])
50
- fmt .Fprintf (os .Stderr , " stdin | %s [-a] [-d <description>] [-n <file_name>] [-p]\n " , os .Args [0 ])
50
+ fmt .Fprintf (os .Stderr , " stdin | %s [-a] [-d <description>] [-n <file_name>] [-p]\n \n " , os .Args [0 ])
51
+ fmt .Fprintln (os .Stderr , "The token is saved in the following file and omitting the user name and password entry from next time:" )
52
+ if runtime .GOOS == "windows" {
53
+ fmt .Fprintln (os .Stderr , "%APPDATA%\\ gistup\\ token" )
54
+ } else {
55
+ fmt .Fprintln (os .Stderr , "~/.config/gistup/token" )
56
+ }
57
+ fmt .Fprintln (os .Stderr )
51
58
flag .PrintDefaults ()
52
59
}
53
60
flag .Parse ()
You can’t perform that action at this time.
0 commit comments