pass in the env to canon.execute to allow multiple editors

This commit is contained in:
Fabian Jakobs 2010-12-14 11:36:21 +01:00
commit 5e0695b588
3 changed files with 8 additions and 8 deletions

View file

@ -244,8 +244,10 @@ exports.Assignment = Assignment;
* class
* @constructor
*/
function Requisition() {
function Requisition(env) {
this.env = env;
}
Requisition.prototype = {
/**
* The command that we are about to execute.
@ -377,7 +379,9 @@ exports.Requisition = Requisition;
* if not specified.
* @constructor
*/
function CliRequisition(options) {
function CliRequisition(env, options) {
Requisition.call(this, env);
if (options && options.flags) {
/**
* TODO: We were using a default of keyboard.buildFlags({ });