This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-05
Channels
- # adventofcode (111)
- # announcements (20)
- # babashka (19)
- # beginners (47)
- # calva (7)
- # clojure (56)
- # clojure-dev (27)
- # clojurescript (2)
- # events (1)
- # holy-lambda (1)
- # juxt (2)
- # meander (18)
- # minecraft (4)
- # missionary (107)
- # nextjournal (21)
- # off-topic (30)
- # reagent (7)
- # reitit (19)
- # releases (1)
- # tools-build (8)
- # tools-deps (7)
- # vim (22)
- # xtdb (4)
I would like to combine tasks, where one task outputs something to (presumably stdout), and the next task reads this output. Is there an example somewhere how to do that?
@hoertlehner Tasks already can be used to return values.
{:tasks {a 1 b {:depends [a] :task (inc a)}}}
@hoertlehner Would that solve your problem?
Come across this piece of code:
:tasks {app tasks/app
deps tasks/fix-deps
ci tasks/ci
clean tasks/clean
check tasks/check
dev tasks/dev
Why app is not keyword, :app. Is the above valid end? (source https://github.com/djblue/portal/blob/master/bb.edn#L3)
the right hand side is simply a reference to a function in a namespace which will be executed when you run the task
@borkdude: thanks! the 1 that is returned by a, is this a edn value? Could I make this also if a would do (println "123")
ahhh. or I guess I could take the return value of a shell function call and give this back in a task...