babashka.process
$
Convenience macro around `process`. Takes command as varargs. Options can be passed via metadata on the form or as a f...
macro([opts? & args])
*
Dynamic var containing overridable default options. Use `alter-var-root` to change permanently or `binding` to change ...
value
A
Returns `true` if the process is still running and false otherwise.
function([p])
C
Takes a process, waits until is finished and throws if exit code is non-zero.
function([proc])
D
Destroys the process and returns the input arg. Takes process or map with :proc (`java.lang.ProcessBuilder`).
function([proc])
Same as `destroy` but also destroys all descendants. JDK9+ only. Falls back to `destroy` on older JVM versions.
function([proc])
E
Replaces the current process image with the process image specified by the given path invoked with the given args. Wor...
function([opts? & args])
P
Parses arguments to `process` to map with: * `:prev`: a (previous) process whose input is piped into the current proc...
function([args])
Returns a process builder (as record).
function([& args])
Returns the processes for one pipe created with -> or creates pipeline from multiple process builders. - When passi...
function([proc] [pb & pbs])
Creates a child process. Takes a command (vector of strings or objects that will be turned into strings) and optionall...
function([opts? & args])
Same as with `process` but called with parsed arguments (the result from `parse-args`)
function([{:keys [prev cmd opts]}])
S
Convenience function similar to `clojure.java.shell/sh` that sets `:out` and `:err` to `:string` by default and blocks...
function([opts? & args])
Convenience function around `process` that was originally in `babashka.tasks`. Defaults to inheriting I/O: input is re...
function([opts? & args])
Takes a process builder, calls start and returns a process (as record).
function([pb])
T
Tokenize string to list of individual space separated arguments. If argument contains space you can wrap it with `'` o...
function([s])