hey folks, quick question
I created this alias in my deps.edn to start portal, but the code inside the :main-opts “-e” will not be called
:portal {:extra-deps {cider/cider-nrepl {:mvn/version "0.28.5"}
djblue/portal {:mvn/version "0.35.0"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[portal.nrepl/wrap-portal, cider.nrepl/cider-middleware]"
"-e" "(require,'[portal.api,:as,p]),(def,p,(p/open))"]}clojure.main understands an option -e https://github.com/clojure/clojure/blob/master/src/clj/clojure/main.clj#L499
But you aren’t calling this main entry point, you are calling nrepl.cmdline which doesn’t support that option
Ah, i See. So i have to manually load that code later.
Thx!
any hints why this isn’t working?