mirror of
https://github.com/bower/bower.git
synced 2026-02-12 06:55:04 -05:00
Tweaks.
This commit is contained in:
@@ -15,7 +15,7 @@ function help(name) {
|
||||
emitter.emit('end', json);
|
||||
});
|
||||
|
||||
emitter.name = 'help';
|
||||
emitter.command = 'help';
|
||||
|
||||
return emitter;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ function install(endpoints, options, config) {
|
||||
emitter.emit('notification', notification);
|
||||
});
|
||||
|
||||
emitter.name = 'install';
|
||||
emitter.command = 'install';
|
||||
|
||||
return emitter;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ function uninstall(endpoints, options, config) {
|
||||
emitter.emit('notification', notification);
|
||||
});
|
||||
|
||||
emitter.name = 'uninstall';
|
||||
emitter.command = 'uninstall';
|
||||
|
||||
return emitter;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ function update(endpoints, options, config) {
|
||||
emitter.emit('notification', notification);
|
||||
});
|
||||
|
||||
emitter.name = 'update';
|
||||
emitter.command = 'update';
|
||||
|
||||
return emitter;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,11 @@ StandardRenderer.prototype.updateNotice = function (data) {
|
||||
// -------------------------
|
||||
|
||||
StandardRenderer.prototype._install = function (installed) {
|
||||
// TODO
|
||||
// TODO: render tree of installed packages
|
||||
};
|
||||
|
||||
StandardRenderer.prototype._update = function (updated) {
|
||||
// TODO: render tree of updated packages
|
||||
};
|
||||
|
||||
StandardRenderer.prototype._help = function (data) {
|
||||
@@ -93,7 +97,7 @@ StandardRenderer.prototype._help = function (data) {
|
||||
.then(function (str) {
|
||||
that._write(process.stdout, str);
|
||||
}, function (err) {
|
||||
// If it failed with something else than ENOENTm
|
||||
// If it failed with something else than ENOENT
|
||||
// error out
|
||||
if (err.code !== 'ENOENT') {
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user