Skip to content

Commit

Permalink
Add exit code (#17)
Browse files Browse the repository at this point in the history
* add an exit code to the bin script

* add an exit code to the bin script
  • Loading branch information
cjmarkham authored Sep 13, 2024
1 parent 31c3c74 commit 5f7f126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/gherklin
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ const init = await runner.init()
if (!init.success) {
throw init.schemaErrors
}
await runner.run()
const result = await runner.run()
if (!result.success) {
process.exit(1)
}
process.exit(0)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gherklin",
"version": "0.2.1",
"version": "0.2.2",
"description": "A linter for Gherkin syntax",
"scripts": {
"test": "NODE_ENV=testing mocha",
Expand Down

0 comments on commit 5f7f126

Please sign in to comment.