2 (:require [lib :refer [expand-home run-cmd]]
3 [babashka.process :refer [process]]))
6 "Run a sequence of shell commands on a sequence of arguments.
10 1. Play and delete each video from a folder
11 ls | bb -i '(run-seq [\"mpv\" \"rm\"] *input*)'
14 (doseq [argument arguments
16 (println (run-cmd [command argument]))))
19 "Run a bb task from this repository in the current working directory."
21 (let [current-dir (System/getenv "PWD")
22 babashka-scripts-dir (expand-home "~/dev/babashka-scripts/")]
23 (print (-> (process ["bb" task current-dir] {:dir babashka-scripts-dir})