Fork me on GitHub
#babashka
<
2023-03-01
>
Daniel Gerson11:03:13

Greetings! Would it be possible to expose babashka.impl.nrepl-server/start-server!? Then I could add a task like aws-nrepl {:task (babashka.exposed-or-whatever.nrepl-server/start-server!)} which has all the :requires loaded and ready to go? Thoughts?

Daniel Gerson11:03:39

... as well as the ability to have run initialisation/connection code 🙂

lispyclouds11:03:18

if i understand this correctly shouldnt the public ns babashka.nrepl.server do the same thing?

Daniel Gerson11:03:43

Oh, it is public? I obviously didn't do a good search

Daniel Gerson11:03:01

I searched docs for nrepl-server and then did a github search but came across the wrong code obviously.

lispyclouds11:03:27

yep, in the https://book.babashka.org/, look for The babashka.nrepl.server API is exposed since version 0.8.157.

Daniel Gerson11:03:26

Ah, you won't find it if you search for nrepl-server . Thwarted by a dash.

Daniel Gerson11:03:04

Thanks for the help!

1
👍 1
borkdude12:03:44

Btw, babashka.fs/zip now takes a :root option to elide a parent folder or folders. E.g. (fs/zip "src" {:root "src"}) will zip src/foo.clj into the zip file under foo.clj

🎉 1