File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ export = CmdHelper ;
2
+ /**
3
+ * Command helper
4
+ *
5
+ * @author Thiago Delgado Pinto
6
+ */
7
+ declare class CmdHelper {
8
+ /**
9
+ * Constructor
10
+ *
11
+ * @param {object } config Configuration declared in the CodeceptJS configuration file.
12
+ */
13
+ constructor ( config : object ) ;
14
+ options : any ;
15
+ /**
16
+ * Executes the given command.
17
+ *
18
+ * @param {string } command Command to execute.
19
+ * @param {object } [options] Same options as in NodeJS' spawn(), plus `showOutput: boolean`. Optional. Default is `{ shell: true, showOutput: true }`.
20
+ *
21
+ * @returns Promise with the returning execution status code (0 means success)
22
+ */
23
+ runCommand ( command : string , options ?: object ) : any ;
24
+ }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class CmdHelper extends Helper {
41
41
* Executes the given command.
42
42
*
43
43
* @param {string } command Command to execute.
44
- * @param {object } options Same options as in NodeJS' spawn(), plus `showOutput: boolean`. Optional. Default is `{ shell: true, showOutput: true }`.
44
+ * @param {object } [ options] Same options as in NodeJS' spawn(), plus `showOutput: boolean`. Optional. Default is `{ shell: true, showOutput: true }`.
45
45
*
46
46
* @returns Promise with the returning execution status code (0 means success)
47
47
*/
You can’t perform that action at this time.
0 commit comments