Skip to content

Commit

Permalink
update readme and tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan Goel committed Apr 2, 2016
1 parent e79467f commit 5c27445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A `.gitignore` magician in your command line. Joe generates `.gitignore` files from the command line for you.

![](http://i.imgur.com/ghmJLUP.gif)
![](http://i.imgur.com/2tAksHG.gif)

## Features

Expand Down Expand Up @@ -125,7 +125,6 @@ USAGE:
$ $tool [-h|--help] COMMAND

EXAMPLES:
$ $tool readme Generate README.rst from README.md
$ $tool deps Install dependencies for joe
$ $tool build Build a binary
$ $tool run Build and run the binary
Expand Down
12 changes: 1 addition & 11 deletions tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function usage {
$ $tool [-h|--help] COMMAND
EXAMPLES:
$ $tool readme Generate README.rst from README.md
$ $tool deps Install dependencies for joe
$ $tool build Build a binary
$ $tool run Build and run the binary
Expand All @@ -18,14 +17,7 @@ EOF
}


# convert README.md to README.rst
function readme {
pandoc --from=markdown --to=rst --output=README.rst README.md
printf 'README.rst generated\n';
}

function build {
readme
go build -o build/joe joe.go utils.go
printf 'joe built\n';
}
Expand All @@ -43,9 +35,7 @@ fi


# show help for no arguments if stdin is a terminal
if [ "$1" == "readme" ]; then
readme
elif [ "$1" == "deps" ]; then
if [ "$1" == "deps" ]; then
go get github.com/codegangsta/cli
elif [ "$1" == "build" ]; then
build
Expand Down

0 comments on commit 5c27445

Please sign in to comment.