wip [skip ci]

This commit is contained in:
Michiel Borkent 2021-03-18 11:31:41 +01:00
parent f0bdc28888
commit c5ebffa7bf
2 changed files with 16 additions and 2 deletions

View file

@ -524,7 +524,8 @@ Use -- to separate script command line args from bb command line args.
[nil [nil
(-> (p/process args {:inherit true}) (-> (p/process args {:inherit true})
p/check p/check
:exit)])})) :exit)])})
(error (str "No such task: " (:task/type task)) 1))
(error (str "No such task: " task) 1)) (error (str "No such task: " task) 1))
(error (str "File does not exist: " task) 1))) (error (str "File does not exist: " task) 1)))

View file

@ -16,4 +16,17 @@
:args [:do :count-files :args [:do :count-files
:__ :bash "ls | wc -l" :__ :bash "ls | wc -l"
:__ :eval-plus 1 2 3 :__ :eval-plus 1 2 3
:__ :describe]}}} :__ :describe]}
;;;;
:failing-shell {:task/type :babashka
;; we are executing a shell task, yet we are continueing despite the error code
:args [-e (-> (do (deref (babashka.process/process ["ls" "foobar"] {:inherit true}))
(deref (babashka.process/process ["echo" "done"] {:inherit true}))
nil))]}
:print-hello {:task/type :babashka
:args [-e (println :hello)]}
:composed-failing {:task/type :babashka
:args [:do :failing-shell
:__ :print-hello]}
,}
}