mib-cli
Version:
CLI tool to manage projects
22 lines (17 loc) • 464 B
JavaScript
const config = require('../../util/config');
module.exports = function (vorpal, options) {
vorpal
.command('configure')
.option('-r, --root <root>', 'Set the default directory where to store clone projects')
.description('Change the configuration of MIB')
.action(function (args, callback) {
try {
for(key in args.options) {
config[key](args.options[key]);
}
return callback();
} catch(e) {
return callback(e);
}
});
}