This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-05
Channels
- # announcements (12)
- # babashka (29)
- # bangalore-clj (3)
- # beginners (153)
- # calva (2)
- # chlorine-clover (46)
- # cider (11)
- # clj-kondo (21)
- # cljfx (20)
- # cljs-dev (3)
- # clojure (393)
- # clojure-australia (2)
- # clojure-europe (15)
- # clojure-spec (40)
- # clojure-uk (1)
- # clojurescript (3)
- # community-development (1)
- # conjure (2)
- # cursive (1)
- # data-oriented-programming (1)
- # datomic (7)
- # defnpodcast (2)
- # docs (2)
- # figwheel-main (5)
- # fulcro (52)
- # graalvm (2)
- # inf-clojure (21)
- # malli (10)
- # meander (6)
- # mid-cities-meetup (13)
- # nrepl (1)
- # off-topic (24)
- # other-languages (1)
- # pathom (3)
- # polylith (18)
- # re-frame (6)
- # reitit (11)
- # ring-swagger (2)
- # shadow-cljs (56)
- # specter (1)
- # xtdb (7)
Hi all, any ideas on how I would get this to work using clojure.java.shell? I’ve tried all the variations I can think of but can’t get the > working
pg_dump -Fc > dump.sql
@aramz you can also use babashka.process
which accepts :out <file>
$ bb -e '(babashka.process/sh ["echo" "foo"] {:out (io/file "/tmp/output.txt")})'
@U04V15CAJ Thanks so much for the reply!
Babashka news overview of March 2021: https://github.com/babashka/babashka/blob/master/doc/news.md#2021-03
What's your preferred way of visualising graphs with babashka? I'm looking for a simple way to visualise graphs based on data retrieved and transformed in babashka.
Here is an example of someone using vega-lite to do it. https://gist.github.com/vdikan/6b6063d6e1b00a3cd79bc7b3ce3853d6/ It's using the old custom "from scratch" http server, but nowadays you can do this using httpkit. The html could now be done using hiccup.
@grazfather fyi, I'm now experimenting with topological sort and dependencies between tasks: https://github.com/babashka/babashka/discussions/765#discussioncomment-571737
awesome
is your intent mostly to work with .PHONY
like targets, or would you support something that can detect if a task actually needs to run?
e.g. if test needs bin, but bin doesn’t run if none of the files have been touched
technicall a task could have an attribute that is a ‘needs to run’ predicate
@grazfather yes, can easily support that, but you can also write (when ... ...)
or (if ... (println "Nothing to do here")
yourself
true, that’s probably a better idea. Just maybe something for the babashka book (a recipe) rather than baking it into bb itelsf
can always add it later, if it turns out to be something people really want, but providing some helper functions like (modified-since? target files)
are the foundation I think
Borrowing ideas from https://github.com/juxt/mach, but leaving some things out which I think you can do yourself in some code, which could be added later into some option as well
oh, I have never seen that project
I might 🙂 I often whip up quick makefiles when I am debugging something just to re do a few steps
often in a docker container
An easy (if docker ps | grep) to avoid re-starting the container would be awesome