Skip to content

Commit

Permalink
print manifest on cli
Browse files Browse the repository at this point in the history
  • Loading branch information
bevacqua committed Sep 12, 2014
1 parent 3a0ee76 commit 3c71ef8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.1.0 Manifest
# 1.1.1 Domestic Violence

- Exposes a manifest if `--manifest` is passed

Expand Down
5 changes: 4 additions & 1 deletion bin/reaver
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
var argv = require('minimist')(process.argv.slice(2));
var reaver = require('..');

reaver(argv._, argv);
var manifest = reaver(argv._, argv);
if (manifest) {
console.log(JSON.stringify(manifest, null, 2));
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reaver",
"description": "Minimal asset hashing CLI and API",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/bevacqua/reaver",
"author": {
"name": "Nicolas Bevacqua",
Expand Down
2 changes: 1 addition & 1 deletion reaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function api (files, options) {
fs.renameSync(from, to);
}

return options && options.manifest ? manifest : void 0;
return options && options.manifest ? manifest : null;
}


Expand Down

0 comments on commit 3c71ef8

Please sign in to comment.