(prepare-cmd cmd)
Flattens and removes nils from a collection of arguments. Useful for constructing shell commands with conditionals or complex flags
Flattens and removes nils from a collection of arguments. Useful for constructing shell commands with conditionals or complex flags
(sh! & args)
Runs a command with clojure.java.shell/sh, throwing if the exit code is not 0
Runs a command with clojure.java.shell/sh, throwing if the exit code is not 0
(with-append-sh-env env & body)
Like clojure.java.shell/with-sh-env, but instead of replacing the environment, it merges the new env with the old env
Like clojure.java.shell/with-sh-env, but instead of replacing the environment, it merges the new env with the old env
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close