X-Git-Url: https://njoseph.me/gitweb/babashka-scripts.git/blobdiff_plain/9da8be80d72b89328d70b47b71050251e32c470a..59cefd6c8175f2f1473420130eeb44cacb1df661:/lib.clj diff --git a/lib.clj b/lib.clj index 5f216d1..70fef53 100644 --- a/lib.clj +++ b/lib.clj @@ -2,7 +2,14 @@ (import '[java.nio.file Files FileSystems CopyOption StandardCopyOption]) -(require '[org.httpkit.client :as http]) +(require '[babashka.process :as p] '[org.httpkit.client :as http]) + +(defn run-cmd + [command] + (->> command + p/process + :out + slurp)) (defn extract-file-from-zip [zip-file-name source destination]