Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 636 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 636 Bytes

cmdpipe(Deprecated)

Deprecated, don't use

Maven Central

Utils for command line call

Example

val r = cmdline("git", "clone", "https://github.com/iseki0/cmdpipe")
    .withWorkingDirectory(File("/dit/to/clone"))
    .handleStdout { input -> input.reader().readText() }
    .withTimeout(30_000)
    .execute()
check(r.exitCode == 0) { "Clone failed" }
println("stdout: ${r.stdoutValue}") // because we `readText`, so here's the text
println("stderr: ${r.stderrSnapshot}")