-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
My sample:
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;
};
What's the problem?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels