window.FakeTerminal.command.ops = function (instance) {
// Extend the base command
window.FakeTerminal.command.apply(this, arguments);
var base = this;
base.info = function () {
return {
private: false,
description: 'This command doesn\'t do anything terribly exciting'
};
};
base.execute = function (foo, bar) {
instance.output.write('The value of foo is: ' + foo);
instance.output.write('The value of bar is: ' + bar);
base.deferred.resolve();
var xx = '';
var ss = instance.input.requestPassword(xx);
return base.deferred.promise();
};
return base;
};
My sample:
What's the problem?