Add init command (not yet implemented).

This commit is contained in:
André Cruz
2013-07-09 23:56:45 +01:00
parent f931d60ac1
commit 3aedec3e2d
3 changed files with 44 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
module.exports = {
cache: require('./cache'),
info: require('./info'),
init: require('./init'),
install: require('./install'),
help: require('./help'),
link: require('./link'),

29
lib/commands/init.js Normal file
View File

@@ -0,0 +1,29 @@
var EventEmitter = require('events').EventEmitter;
var cli = require('../util/cli');
var createError = require('../util/createError');
function init() {
var emitter = new EventEmitter();
process.nextTick(function () {
emitter.emit('error', createError('Command not yet implemented.', 'ENOTIMPL'));
});
return emitter;
}
// -------------------
init.line = function () {
return init();
};
init.options = function (argv) {
return cli.readOptions(argv);
};
init.completion = function () {
// TODO:
};
module.exports = init;

View File

@@ -0,0 +1,14 @@
{
"command": "init",
"description": "Creates a bower.json file based on answers to questions.",
"usage": [
"init [<options>]"
],
"options": [
{
"shorthand": "-h",
"flag": "--help",
"description": "Show this help message"
}
]
}