wip [skip ci]
This commit is contained in:
parent
c5ebffa7bf
commit
aae8464fb9
1 changed files with 15 additions and 6 deletions
|
|
@ -18,15 +18,24 @@
|
||||||
:__ :eval-plus 1 2 3
|
:__ :eval-plus 1 2 3
|
||||||
:__ :describe]}
|
:__ :describe]}
|
||||||
;;;;
|
;;;;
|
||||||
:failing-shell {:task/type :babashka
|
:never-failing-shell
|
||||||
;; we are executing a shell task, yet we are continueing despite the error code
|
{:task/type :babashka
|
||||||
:args [-e (-> (do (deref (babashka.process/process ["ls" "foobar"] {:inherit true}))
|
;; we are executing a shell task, yet we are continueing despite the error code
|
||||||
(deref (babashka.process/process ["echo" "done"] {:inherit true}))
|
:args [-e (-> (do (deref (babashka.process/process ["ls" "foobar"] {:inherit true}))
|
||||||
nil))]}
|
(deref (babashka.process/process ["echo" "done"] {:inherit true}))
|
||||||
|
nil))]}
|
||||||
:print-hello {:task/type :babashka
|
:print-hello {:task/type :babashka
|
||||||
:args [-e (println :hello)]}
|
:args [-e (println :hello)]}
|
||||||
|
|
||||||
|
:always-failing-shell
|
||||||
|
{:task/type :babashka
|
||||||
|
;; we are executing a shell task, yet we are continueing despite the error code
|
||||||
|
:args [-e (babashka.process/check (babashka.process/process ["ls" "foobar"] {:inherit true}))]}
|
||||||
|
:composed-never-failing {:task/type :babashka
|
||||||
|
:args [:do :never-failing-shell
|
||||||
|
:__ :print-hello]}
|
||||||
:composed-failing {:task/type :babashka
|
:composed-failing {:task/type :babashka
|
||||||
:args [:do :failing-shell
|
:args [:do :always-failing-shell
|
||||||
:__ :print-hello]}
|
:__ :print-hello]}
|
||||||
,}
|
,}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue