chris-martin / process-enrich

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

process-enrich

Adds functionality to scala.sys.process.ProcessBuilder.

Example usage

import org.codeswarm.processenrich.RichProcessBuilder.apply

// Run command "ls /nonexistantfilepath"
val x = Seq("ls", "/nonexistantfilepath").stringOutput

// Prints:
//   Out: [  ]
//   Err: [ ls: cannot access /nonexistantfilepath: No such file or directory ]
print("Out: [ %s ]\nErr: [ %s ]".format(x.out.trim, x.err.trim))

Download

Process-enrich is available from Maven Central. The latest version is 1.0.

<dependency>
  <groupId>org.codeswarm</groupId>
  <artifactId>process-enrich_2.9.2</artifactId>
  <version>1.0</version>
</dependency>

About

License:Apache License 2.0


Languages

Language:Scala 100.0%