@pumpkin-plugins/static-hermes-runtime API / hermes/system / HermesProcessRunner
Interface: HermesProcessRunner
Defined in: hermes/system.ts:5
Injectable wrappers for running Hermes setup commands and capturing their output.
Methods
buffer()
buffer(
command,args,options?):Buffer
Defined in: hermes/system.ts:7
Capture command output as bytes without decoding it.
Parameters
command
string
args
readonly string[]
options?
ExecFileSyncOptions
Returns
Buffer
output()
output(
command,args,options?):string
Defined in: hermes/system.ts:9
Capture UTF-8 output and remove its final line ending.
Parameters
command
string
args
readonly string[]
options?
ExecFileSyncOptions
Returns
string
run()
run(
command,args,options?):void
Defined in: hermes/system.ts:11
Run a command with inherited output unless overridden in the options.
Parameters
command
string
args
readonly string[]
options?
ExecFileSyncOptions
Returns
void