public class NodeProcessRunner extends Object implements NodeClient
| Constructor and Description |
|---|
NodeProcessRunner(ProcessRunner processRunner,
Path path,
Path node,
Path npmCli,
Path npxCli) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getPath() |
ProcessRunner |
npm() |
ProcessRunner |
npx() |
int |
run(List<String> command,
ProcessContext processContext)
Starts an external process using the given command.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic NodeProcessRunner(ProcessRunner processRunner, Path path, Path node, Path npmCli, Path npxCli)
public int run(List<String> command, ProcessContext processContext)
ProcessRunnerrun in interface ProcessRunnercommand - the command to executeprocessContext - the process contextpublic ProcessRunner npm()
npm in interface NodeClientpublic ProcessRunner npx()
npx in interface NodeClientpublic Path getPath()
getPath in interface NodeClientCopyright © 2022. All rights reserved.