all-contributors-cli/lib/init/index.js

11 lines
248 B
JavaScript
Raw Normal View History

2016-03-21 21:40:32 +00:00
'use strict';
var prompt = require('./prompt');
var configFile = require('../configFile');
module.exports = function init(cb) {
prompt(function postPrompt(result) {
configFile.writeConfig('.all-contributorsrc', result.config, cb);
});
};