gluegun
Version:
A delightful toolkit for building Node-powered CLIs.
21 lines • 886 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var meta_tools_1 = require("../toolbox/meta-tools");
/**
* Extension that lets you learn more about the currently running CLI.
*
* @param toolbox The running toolbox.
*/
function attach(toolbox) {
var meta = {
src: toolbox.runtime && toolbox.runtime.defaultPlugin && toolbox.runtime.defaultPlugin.directory,
version: function () { return (0, meta_tools_1.getVersion)(toolbox); },
packageJSON: function () { return (0, meta_tools_1.getPackageJSON)(toolbox); },
commandInfo: function () { return (0, meta_tools_1.commandInfo)(toolbox); },
checkForUpdate: function () { return (0, meta_tools_1.checkForUpdate)(toolbox); },
onAbort: meta_tools_1.onAbort,
};
toolbox.meta = meta;
}
exports.default = attach;
//# sourceMappingURL=meta-extension.js.map
;