+8
-5
lines changedFilter options
+8
-5
lines changed Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@ class Command {
121
121
* @param {Options=} opt_options The command options.
122
122
* @return {!Command} The launched command.
123
123
*/
124
-
module.exports = function exec(command, opt_options) {
124
+
function exec(command, opt_options) {
125
125
const options = opt_options || {}
126
126
127
127
let proc = childProcess.spawn(command, options.args || [], {
@@ -158,6 +158,9 @@ module.exports = function exec(command, opt_options) {
158
158
159
159
// Exported to improve generated API documentation.
160
160
161
-
module.exports.Command = Command
162
-
module.exports.Options = Options
163
-
module.exports.Result = Result
161
+
module.exports = {
162
+
Command,
163
+
Options,
164
+
Result,
165
+
exec
166
+
}
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ const url = require('url')
23
23
24
24
const httpUtil = require('../http/util')
25
25
const io = require('../io')
26
-
const exec = require('../io/exec')
26
+
const { exec } = require('../io/exec')
27
27
const { Zip } = require('../io/zip')
28
28
const cmd = require('../lib/command')
29
29
const input = require('../lib/input')
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4