Skip to content

Commit

Permalink
renamed the project from ghelp to make-help
Browse files Browse the repository at this point in the history
  • Loading branch information
gibatronic committed Oct 13, 2015
1 parent c365eb5 commit 8dd8b19
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ notifications:
email:
on_failure: always
on_success: never
script: bats/bin/bats --tap test/ghelp
script: bats/bin/bats --tap test/make-help
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ help:
echo ' make <target>'
echo ''
echo ' Targets:'
bin/ghelp -p 4 $(lastword $(MAKEFILE_LIST))
bin/make-help -p 4 $(lastword $(MAKEFILE_LIST))
echo ''

# grab dependencies
Expand All @@ -21,4 +21,4 @@ install:

# run the program's tests
test:
test/ghelp
test/make-help
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ghelp [![Build Status](https://travis-ci.org/gibatronic/ghelp.svg?branch=master)](https://travis-ci.org/gibatronic/ghelp)
# make-help [![Build Status](https://travis-ci.org/gibatronic/make-help.svg?branch=master)](https://travis-ci.org/gibatronic/make-help)

This is a [basher](https://github.com/basherpm/basher) and [npm](https://www.npmjs.com/) package to help you document your make tasks.

Expand All @@ -8,10 +8,10 @@ Install this package with one of the following commands:

```shell
# through basher
basher install gibatronic/ghelp
basher install gibatronic/make-help

# or through npm
npm install ghelp --global
npm install make-help --global
```

Then comment the targets you wish to document in your `makefile`, for example:
Expand Down Expand Up @@ -39,7 +39,7 @@ help:
echo ' make <target>'
echo ''
echo ' Targets:'
ghelp -p 4 "$(lastword $(MAKEFILE_LIST))"
make-help -p 4 "$(lastword $(MAKEFILE_LIST))"
echo ''
```

Expand Down
2 changes: 1 addition & 1 deletion bin/ghelp → bin/make-help
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resolve_path() {
usage() {
echo ''
echo ' Usage:'
echo ' ghelp [options] <makefile>'
echo ' make-help [options] <makefile>'
echo ''
echo ' Options:'
echo ' -p --pad the number of spaces to prefix each line'
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"name": "Gibran Malheiros",
"url": "http://gibatronic.github.io/"
},
"bin": "bin/ghelp",
"bin": "bin/make-help",
"bugs": {
"email": "[email protected]",
"url": "https://github.com/gibatronic/ghelp/issues"
"url": "https://github.com/gibatronic/make-help/issues"
},
"description": "Using make as a task runner? Then document your tasks with ghelp!",
"homepage": "https://github.com/gibatronic/ghelp",
"description": "Using make as a task runner? Then document your tasks running make help!",
"homepage": "https://github.com/gibatronic/make-help",
"keywords": [
"help",
"make",
Expand All @@ -20,10 +20,10 @@
"usage"
],
"license": "MIT",
"name": "ghelp",
"name": "make-help",
"repository": {
"type": "git",
"url": "https://github.com/gibatronic/ghelp.git"
"url": "https://github.com/gibatronic/make-help.git"
},
"version": "0.0.2"
}
31 changes: 0 additions & 31 deletions test/ghelp

This file was deleted.

31 changes: 31 additions & 0 deletions test/make-help
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bats

@test 'should parse the simple fixture' {
local MAKE_HELP_OUTPUT=$(bin/make-help test/fixtures/simple.in)
echo "${MAKE_HELP_OUTPUT}" | diff - test/fixtures/simple.out
}

@test 'should sort the tasks in the unsorted fixture' {
local MAKE_HELP_OUTPUT=$(bin/make-help test/fixtures/unsorted.in)
echo "${MAKE_HELP_OUTPUT}" | diff - test/fixtures/unsorted.out
}

@test 'should pad the output with -p 2' {
local MAKE_HELP_OUTPUT=$(bin/make-help -p 2 test/fixtures/pad.in)
echo "${MAKE_HELP_OUTPUT}" | diff - test/fixtures/pad.out
}

@test 'should pad the output with --pad 2' {
local MAKE_HELP_OUTPUT=$(bin/make-help --pad 2 test/fixtures/pad.in)
echo "${MAKE_HELP_OUTPUT}" | diff - test/fixtures/pad.out
}

@test 'should pad the output with --pad=2' {
local MAKE_HELP_OUTPUT=$(bin/make-help --pad=2 test/fixtures/pad.in)
echo "${MAKE_HELP_OUTPUT}" | diff - test/fixtures/pad.out
}

@test 'should ignore loose comments and targets' {
local MAKE_HELP_OUTPUT=$(bin/make-help test/fixtures/loose.in)
echo "${MAKE_HELP_OUTPUT}" | diff - test/fixtures/loose.out
}

0 comments on commit 8dd8b19

Please sign in to comment.