You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets the current working directory for the command. This can be a [template][] which can be interpolated by some [file][] info (e.g. `file.path`).
84
83
85
-
Set to `true` to print the command(s) to stdout as they are executed
84
+
#### options.env
86
85
87
-
#### options.errorMessage
86
+
type: `Object`
88
87
89
-
type: `String`
88
+
By default, all the commands will be executed in an environment with all the variables in [`process.env`](http://nodejs.org/api/process.html#process_process_env) and `PATH` prepended by `./node_modules/.bin` (allowing you to run executables in your Node's dependencies).
You can override any environment variables with this option.
92
91
93
-
You can add a custom error message for when the command fails.
94
-
This can be a [template][] which can be interpolated with the current `command`, some [file][] info (e.g. `file.path`) and some error info (e.g. `error.code`).
92
+
For example, setting it to `{PATH: process.env.PATH}` will reset the `PATH` if the default one brings your some troubles.
95
93
96
-
#### options.ignoreErrors
94
+
#### options.quiet
97
95
98
96
type: `Boolean`
99
97
100
98
default: `false`
101
99
102
-
By default, it will emit an `error` event when the command finishes unsuccessfully.
100
+
By default, it will print the command output.
103
101
104
-
#### options.quiet
102
+
#### options.verbose
105
103
106
104
type: `Boolean`
107
105
108
106
default: `false`
109
107
110
-
By default, it will print the command output.
108
+
Set to `true` to print the command(s) to stdout as they are executed
You can add a custom error message for when the command fails.
125
+
This can be a [template][] which can be interpolated with the current `command`, some [file][] info (e.g. `file.path`) and some error info (e.g. `error.code`).
127
126
128
-
#### options.env
127
+
#### options.templateData
129
128
130
129
type: `Object`
131
130
132
-
By default, all the commands will be executed in an environment with all the variables in [`process.env`](http://nodejs.org/api/process.html#process_process_env) and `PATH` prepended by `./node_modules/.bin` (allowing you to run executables in your Node's dependencies).
133
-
134
-
You can override any environment variables with this option.
131
+
The data that can be accessed in [template][].
135
132
136
-
For example, setting it to `{PATH: process.env.PATH}` will reset the `PATH` if the default one brings your some troubles.
0 commit comments