Class StdioRuntimeConnection
java.lang.Object
com.github.copilot.rpc.RuntimeConnection
com.github.copilot.rpc.StdioRuntimeConnection
Spawns a runtime child process and communicates over its stdin/stdout.
Construct with
RuntimeConnection.forStdio() or
RuntimeConnection.forStdio(String).- Since:
- 1.0.0
-
Method Summary
Methods inherited from class RuntimeConnection
forInProcess, forStdio, forStdio, forTcp, forUri
-
Method Details
-
getPath
Returns the path to the runtime executable.- Returns:
- the path, or
nullto use the runtime discovered on thePATH
-
setPath
Sets the path to the runtime executable.- Parameters:
path- the path, ornullto use the runtime discovered on thePATH- Returns:
- this instance for method chaining
-
getArgs
-
setArgs
Sets extra command-line arguments passed to the runtime process.- Parameters:
args- the arguments, ornullfor none- Returns:
- this instance for method chaining
-