new Runner()
Create the service
Members
-
<static> provides :string
-
Service name is 'runner'
Type:
- string
-
<static> requires :Array.<string>
-
Dependencies as constructor arguments
Type:
- Array.<string>
-
<static> execTimeout
-
Command execution time limit
Methods
-
<async> exec(command [, params] [, options])
-
Execute a command
Parameters:
Name Type Argument Description commandstring Command name paramsArray.<string> <optional>
Command arguments optionsobject <optional>
execFile() options with the following addition Properties
Name Type Argument Description pipeobject <optional>
The command's stdout, stderr will be piped to this process and stdin of this process will be piped to the command Returns:
{ code: 0, signal: null, stdout: '', stderr: '', }- Type
- Promise
-
spawn(command [, params] [, options] [, expect])
-
Spawn a command
Parameters:
Name Type Argument Description commandstring Command name paramsArray.<string> <optional>
Command arguments optionsobject <optional>
Pty.js options expectMap <optional>
Expect-send map { /regexp/: 'send this' } Returns:
- Type
- Subprocess