OlegKrikun / kotlin-shell

Apache License 2.0
6 stars 1 forks source link

kotlin-shell

Usage

shell(workingDir) {
    call("git clone git@github.com:OlegKrikun/kotlin-shell.git").execute()
    call("cd kotlin-shell").execute()
    call("ls").output { println(it) } // or call(...).printOutput()

    // OR...

    "git clone git@github.com:OlegKrikun/kotlin-shell.git"()
    "cd kotlin-shell"()
    "ls" { println(it) }
}