babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
mike_ananev 2021-06-14T15:40:35.025600Z

Is there any recommended way to change working directory inside a script? I need to go to /some/folder/, run there vagrant up, then return back.

borkdude 2021-06-14T15:41:09.026Z

@mike1452 (shell {:dir ...} ....)

borkdude 2021-06-14T15:41:37.026400Z

or outside tasks, (process [...] {:dir ...}), although you can use shell from anywhere as babashka.tasks/shell as well

mike_ananev 2021-06-14T15:41:56.026600Z

ah, thanks!

Nicolas Estrada 2021-06-14T18:46:15.030200Z

Hey, I know cursive support is in the pipes, but is there a way to use a deps project base nrepl and babashka? I'm actually able to work just fine, however if I use babashka.classpath or babashka.deps cursive can't seem to create stubs for them, the way it can for datomic or java_time. I prefer cursive's nREPL rather than bb's tubular socket repl which is less practical for me.

borkdude 2021-06-14T18:48:13.030500Z

@nicolas.estrada938 babashka also has nREPL btw

😉 1
borkdude 2021-06-14T18:50:05.031400Z

There is an open issue for clojure-lsp and bb. It has a script to pull babashka's own deps.edn, do some transformations on that and then give that classpath to clojure-lsp. https://github.com/babashka/babashka/issues/733 Something similar might work for Cursive meanwhile.

borkdude 2021-06-14T18:51:30.031900Z

@cfleming might be able to give you more pointers

Nicolas Estrada 2021-06-14T18:55:15.032100Z

ok cool thanks!