fix: java.sh -> babashka.process/shell

Previously, the rebuild command would not report to stdout/stderr.
This commit is contained in:
Madeleine Sydney
2025-01-14 21:51:35 -07:00
parent 0e9bad81ee
commit d029498349

View File

@@ -1,6 +1,6 @@
(ns sydnix-cli.commands.rebuild
(:require
[clojure.java.shell :refer [sh]]
[babashka.process :as p]
[sydnix-cli.commands.help :refer [adorn-with-help-option*]]))
(def command-options-spec
@@ -16,7 +16,7 @@
(or args ["switch"])
["--flake" (:flake opts)])]
(apply println "$" rebuild-cmd)
(apply sh rebuild-cmd)))
(apply p/shell {:continue true} rebuild-cmd)))
(def commands
[{:cmds ["rebuild"]