-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed the project from ghelp to make-help
- Loading branch information
1 parent
c365eb5
commit 8dd8b19
Showing
7 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |