diff options
| author | cainus <[email protected]> | 2013-03-28 00:26:55 -0700 |
|---|---|---|
| committer | cainus <[email protected]> | 2013-03-28 00:26:55 -0700 |
| commit | f27d2ec87c5ce5606cc01839ad056b5b1a4ae7a2 (patch) | |
| tree | d26d70286b616bf6e3f3c578620491440098f259 /bin | |
| parent | 112119e43cb048cfa0dbd98d6e03833b8ca4b619 (diff) | |
| download | node-coveralls-f27d2ec87c5ce5606cc01839ad056b5b1a4ae7a2.tar.xz node-coveralls-f27d2ec87c5ce5606cc01839ad056b5b1a4ae7a2.zip | |
allow lib path to be passed as an arg.
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/coveralls.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/coveralls.js b/bin/coveralls.js index 7769a0f..1558290 100644 --- a/bin/coveralls.js +++ b/bin/coveralls.js @@ -17,7 +17,9 @@ process.stdin.on('end', function() { var inputToCoveralls = function(input){ console.log(input); - var postData = convertLcovToCoveralls(input); + var libDir = process.argv[2] || 'lib'; + + var postData = convertLcovToCoveralls(input, libDir); sendToCoveralls(postData, function(err, response, body){ if (err){ throw err; @@ -30,3 +32,5 @@ var inputToCoveralls = function(input){ }); }; + + |
