fix: java.sh -> babashka.process/shell
Previously, the rebuild command would not report to stdout/stderr.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
(ns sydnix-cli.commands.rebuild
|
(ns sydnix-cli.commands.rebuild
|
||||||
(:require
|
(:require
|
||||||
[clojure.java.shell :refer [sh]]
|
[babashka.process :as p]
|
||||||
[sydnix-cli.commands.help :refer [adorn-with-help-option*]]))
|
[sydnix-cli.commands.help :refer [adorn-with-help-option*]]))
|
||||||
|
|
||||||
(def command-options-spec
|
(def command-options-spec
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
(or args ["switch"])
|
(or args ["switch"])
|
||||||
["--flake" (:flake opts)])]
|
["--flake" (:flake opts)])]
|
||||||
(apply println "$" rebuild-cmd)
|
(apply println "$" rebuild-cmd)
|
||||||
(apply sh rebuild-cmd)))
|
(apply p/shell {:continue true} rebuild-cmd)))
|
||||||
|
|
||||||
(def commands
|
(def commands
|
||||||
[{:cmds ["rebuild"]
|
[{:cmds ["rebuild"]
|
||||||
|
|||||||
Reference in New Issue
Block a user