This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
node-spearhead/lib/do_badger.js

30 lines
645 B
JavaScript
Raw Normal View History

/*
* Copyright (c) 2015 Joyent Inc. All rights reserved.
*
* `triton package ...`
*/
var fs = require('fs');
var once = require('once');
var path = require('path');
function do_badger(subcmd, opts, args, callback) {
var callbackOnce = once(callback);
var badger = path.resolve(__dirname, '../etc/badger');
var input = fs.createReadStream(badger)
input.pipe(process.stdout);
input.on('error', function (err) {
callbackOnce(err);
});
input.on('end', function () {
callbackOnce();
});
};
do_badger.options = [];
do_badger.help = 'Rawr!';
do_badger.hidden = true;
module.exports = do_badger;