Fork me on GitHub
#boot
<
2016-05-08
>
zilvinask12:05:20

hi guys, how do I load some initial file when starting boot repl? I mean something similar when lein repl, automatically loads user.clj for you.

zilvinask12:05:38

i guess it is very obvious, but i cant figure it out how simple_smile

nha14:05:57

@zilvinask: try (load "myfile.clj")

juhoteperi14:05:25

user namespace is loaded by nrepl client and it works the same with boot

juhoteperi14:05:47

try putting some println etc. in user.clj and you should see that it is loaded

juhoteperi14:05:11

But boot repl by default opens in boot.user namespace instead in user ns. You can call functions from user ns by fully qualifying the calls: (user/foo).

juhoteperi14:05:44

boot.user ns is the same as your build.boot file so you can just add code there also

zilvinask16:05:45

@juhoteperi: thanks!