//用了bluebird的Promise returnnewPromise(function(resolve, reject) { var c = self.extend.console.get(name);
if (c) { c.call(self, args).then(resolve, reject); } else { reject(newError('Console `' + name + '` has not been registered yet!')); } }).asCallback(callback); };
Context.prototype.exit = function(err) { if (err) { this.log.fatal( {err: err}, 'Something\'s wrong. Maybe you can find the solution here: %s', chalk.underline('http://hexo.io/docs/troubleshooting.html') ); } };
Context.prototype.unwatch = function() { // Do nothing };