Fork me on GitHub
#babashka
<
2023-07-05
>
pesterhazy12:07:49

Rough equivalent of bash's set -x (tracing) in babashka (only for subprocesses though):

(alter-var-root #'babashka.process/*defaults*
                assoc
                :pre-start-fn
                (fn [{:keys [cmd]}] (prn cmd)))
Requires bb v1.3.180

🎉 6
Karl Xaver13:07:37

Neat, thanks! I was doing unwieldy things to get this, like sprinkling :pre-start-fn everywhere or defning a "`shell-x`".