ProtocRunner

nscn.polaris2.protoc.bridge.ProtocRunner
See theProtocRunner companion object
abstract class ProtocRunner[ExitCode]

How the bridge actually launches protoc.

Abstract rather than a plain function because the build tool may want to intercept the invocation, and because the extra environment carrying the secondary-output directory has to reach the child process.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ProtocRunner[ExitCode]

Members list

Value members

Abstract methods

def run(args: Seq[String], extraEnv: Seq[(String, String)]): ExitCode

Concrete methods

def map[E](f: ExitCode => E): ProtocRunner[E]
def zip[E](other: ProtocRunner[E]): ProtocRunner[(ExitCode, E)]

Runs both runners on the same arguments, pairing their exit codes.

Runs both runners on the same arguments, pairing their exit codes.

Attributes