Fork me on GitHub
#babashka
<
2022-04-25
>
Jeffrey Bay15:04:36

is there a simple way to start the babashka repl with certain files already required? in fact, this is probably an extra dumb question, but how do you require a file into the repl? i've been using it for simple stuff that is all built in, but i really need to pull in some of my code to fiddle with now

borkdude15:04:24

@jbay Use a bb.edn and put your sources in a directory, add that directory to :paths [] in the bb.edn file. Then start the REPL

borkdude15:04:44

you can use --init to execute code before anything else happens