You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gist-put
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2,32 +2,37 @@
2
2
3
3
varpost_gist=require("./lib/post")
4
4
,program=require("commander")
5
+
,exec=require('child_process').spawn
6
+
,temp=require("temp")
5
7
6
8
program
7
9
.version("0.0.0")
8
10
.usage("[options] <file1, file2>")
9
-
.option("-u, --public","Make a public gist on your account (It's private by default). Needs to read your authentication details from `git credential fill`.")
11
+
.option("-p, --public","Make a public gist on your account (It's secret by default). Needs to read your authentication details from `git credential fill`.")
10
12
.option("-a, --anonymous","Make an anonymous gist")
11
13
.option('-d, --description <string>',"A description for your gist",String)
12
-
13
-
program.on("--help",function(){
14
-
//additional help?
15
-
})
16
-
17
-
// TODO, if (program.args.length === 0){
18
-
// // Open editor and then on quite make a
19
-
// // gist of the file
20
-
// }
14
+
.option("-o, --open","open the url in the default browser after creation")
0 commit comments