Fork me on GitHub
#leiningen
<
2020-10-30
>
Old account14:10:27

Hello! how to know what will lein run actually run? is it based on plugins used. How to see what will it do exactly?

kaosko22:10:58

lein run will simply look for ns value of :main, then run -main fn in that namespace

✔️ 3
noisesmith20:10:38

@stebokas it will run your "main" if specified, or "init-ns"

✔️ 3
noisesmith20:10:23

also, IMHO ideally you structure your project so you can run your main (maybe in a thread) from a repl, and not need the run task