File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 4
4
5
5
A ` .gitignore ` magician in your command line. Joe generates ` .gitignore ` files from the command line for you.
6
6
7
- ![ ] ( http://i.imgur.com/ghmJLUP .gif )
7
+ ![ ] ( http://i.imgur.com/2tAksHG .gif )
8
8
9
9
## Features
10
10
@@ -125,7 +125,6 @@ USAGE:
125
125
$ $tool [-h| --help] COMMAND
126
126
127
127
EXAMPLES:
128
- $ $tool readme Generate README.rst from README.md
129
128
$ $tool deps Install dependencies for joe
130
129
$ $tool build Build a binary
131
130
$ $tool run Build and run the binary
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ function usage {
9
9
$ $tool [-h|--help] COMMAND
10
10
11
11
EXAMPLES:
12
- $ $tool readme Generate README.rst from README.md
13
12
$ $tool deps Install dependencies for joe
14
13
$ $tool build Build a binary
15
14
$ $tool run Build and run the binary
18
17
}
19
18
20
19
21
- # convert README.md to README.rst
22
- function readme {
23
- pandoc --from=markdown --to=rst --output=README.rst README.md
24
- printf ' README.rst generated\n' ;
25
- }
26
-
27
20
function build {
28
- readme
29
21
go build -o build/joe joe.go utils.go
30
22
printf ' joe built\n' ;
31
23
}
43
35
44
36
45
37
# show help for no arguments if stdin is a terminal
46
- if [ " $1 " == " readme" ]; then
47
- readme
48
- elif [ " $1 " == " deps" ]; then
38
+ if [ " $1 " == " deps" ]; then
49
39
go get github.com/codegangsta/cli
50
40
elif [ " $1 " == " build" ]; then
51
41
build
You can’t perform that action at this time.
0 commit comments