exec
fun OutputPath.exec(executable: String, vararg arguments: Any, workingDirectory: Path? = null): String
Run an executable with arguments in workingDirectory and capture its stdout. This runs at evaluation time, not build time.
fun exec(executable: String, vararg arguments: String, workingDirectory: Path? = null, stdin: String? = null): String
Run an executable with arguments in workingDirectory while providing stdin and capture its stdout. This runs at evaluation time, not build time.