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
2015-09-01 10:44:34 -07:00

30 lines
659 B
JavaScript

/*
* 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 = 'Badger don\'t care.';
do_badger.hidden = true;
module.exports = do_badger;