Class StdioRuntimeConnection

java.lang.Object
com.github.copilot.rpc.RuntimeConnection
com.github.copilot.rpc.StdioRuntimeConnection

@CopilotExperimental public final class StdioRuntimeConnection extends RuntimeConnection
Spawns a runtime child process and communicates over its stdin/stdout. Construct with RuntimeConnection.forStdio() or RuntimeConnection.forStdio(String).
Since:
1.0.0
  • Method Details

    • getPath

      public String getPath()
      Returns the path to the runtime executable.
      Returns:
      the path, or null to use the runtime discovered on the PATH
    • setPath

      public StdioRuntimeConnection setPath(String path)
      Sets the path to the runtime executable.
      Parameters:
      path - the path, or null to use the runtime discovered on the PATH
      Returns:
      this instance for method chaining
    • getArgs

      public List<String> getArgs()
      Returns the extra command-line arguments passed to the runtime process.
      Returns:
      the arguments, or null if none are configured
    • setArgs

      public StdioRuntimeConnection setArgs(List<String> args)
      Sets extra command-line arguments passed to the runtime process.
      Parameters:
      args - the arguments, or null for none
      Returns:
      this instance for method chaining