pass in the env to canon.execute to allow multiple editors
This commit is contained in:
parent
46ac14ab62
commit
5e0695b588
3 changed files with 8 additions and 8 deletions
|
|
@ -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({ });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue