Skip to content

Commit

Permalink
#19 fixed CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
szikszail committed Dec 22, 2017
1 parent 4a3f4ff commit 5809e35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixed

- CLI commands are not working ([#19](http://github.com/judit-nahaj/gherkin-precompiler/issues/19))

## 1.1.0 - 2017-12-04

### Added
Expand Down
4 changes: 1 addition & 3 deletions bin/precompile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /user/bin/env node

#!/usr/bin/env node
const cli = require('../lib/cli');

cli.run();
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class CLI {
const outputAST = API.process.apply(API, [ast].concat(this.compilers));
ensureDirSync(dirname(source.output));
API.save(source.output, outputAST, this.config.formatOptions);
this.config.verbose && console.log(`Processed file written our ${source.output}`);
this.config.verbose && console.log(`Processed file written out ${source.output}`);
});
return this;
}
Expand Down

0 comments on commit 5809e35

Please sign in to comment.