30 lines
645 B
JavaScript
30 lines
645 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 = 'Rawr!';
|
|
do_badger.hidden = true;
|
|
|
|
module.exports = do_badger;
|