Add function to capture output in infra
This commit is contained in:
parent
f4a4a30f24
commit
9441cfa773
1 changed files with 9 additions and 0 deletions
|
@ -12,3 +12,12 @@
|
||||||
(println c))
|
(println c))
|
||||||
(when-not dry-run
|
(when-not dry-run
|
||||||
(apply t/shell c)))))
|
(apply t/shell c)))))
|
||||||
|
|
||||||
|
(defn-spec execute-out! string?
|
||||||
|
[command ::core/command
|
||||||
|
config ::core/execution]
|
||||||
|
(let [{:keys [dry-run debug]} config]
|
||||||
|
(when debug
|
||||||
|
(println command))
|
||||||
|
(when-not dry-run
|
||||||
|
(:out (t/shell {:out :string} (clojure.string/join " " command))))))
|
Loading…
Reference in a new issue