File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export function setAnswers(answers: ma.TaskLibAnswers) {
11
11
mock . initialize ( answers ) ;
12
12
}
13
13
14
- var run = function ( cmd , callback ) {
14
+ var run = function ( cmd , callback ) { F
15
15
console . log ( 'running: ' + cmd ) ;
16
16
var output = '' ;
17
17
try {
@@ -24,17 +24,17 @@ var run = function(cmd, callback) {
24
24
}
25
25
26
26
export interface IExecOptions extends IExecSyncOptions {
27
- failOnStdErr : boolean ;
28
- ignoreReturnCode : boolean ;
27
+ failOnStdErr ? : boolean ;
28
+ ignoreReturnCode ? : boolean ;
29
29
} ;
30
30
31
31
export interface IExecSyncOptions {
32
- cwd : string ;
33
- env : { [ key : string ] : string } ;
34
- silent : boolean ;
32
+ cwd ? : string ;
33
+ env ? : { [ key : string ] : string } ;
34
+ silent ? : boolean ;
35
35
outStream : NodeJS . WritableStream ;
36
36
errStream : NodeJS . WritableStream ;
37
- windowsVerbatimArguments : boolean ;
37
+ windowsVerbatimArguments ? : boolean ;
38
38
} ;
39
39
40
40
export interface IExecSyncResult {
Original file line number Diff line number Diff line change @@ -13,31 +13,31 @@ import fs = require('fs');
13
13
*/
14
14
export interface IExecOptions extends IExecSyncOptions {
15
15
/** optional. whether to fail if output to stderr. defaults to false */
16
- failOnStdErr : boolean ;
16
+ failOnStdErr ? : boolean ;
17
17
18
18
/** optional. defaults to failing on non zero. ignore will not fail leaving it up to the caller */
19
- ignoreReturnCode : boolean ;
19
+ ignoreReturnCode ? : boolean ;
20
20
}
21
21
22
22
/**
23
23
* Interface for execSync options
24
24
*/
25
25
export interface IExecSyncOptions {
26
26
/** optional working directory. defaults to current */
27
- cwd : string ;
27
+ cwd ? : string ;
28
28
29
29
/** optional envvar dictionary. defaults to current process's env */
30
- env : { [ key : string ] : string } ;
30
+ env ? : { [ key : string ] : string } ;
31
31
32
32
/** optional. defaults to false */
33
- silent : boolean ;
33
+ silent ? : boolean ;
34
34
35
35
outStream : stream . Writable ;
36
36
37
37
errStream : stream . Writable ;
38
38
39
39
/** optional. foo.whether to skip quoting/escaping arguments if needed. defaults to false. */
40
- windowsVerbatimArguments : boolean ;
40
+ windowsVerbatimArguments ? : boolean ;
41
41
}
42
42
43
43
/**
You can’t perform that action at this time.
0 commit comments