hello all, how do I call a function from user
namespace when start clj -A:socket
?
((requiring-resolve 'user/whatever) :some :args)
like that?
Just the same as any other function in any other namespace.
^ @fabrao
Perhaps you can explain a bit more about what you're actually trying to do?
Hello Sean, I could do it with
{:repl {:extra-paths ["dev"]
:extra-deps {org.clojure/tools.namespace {:mvn/version "0.2.11"}}
:jvm-opts ["-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}"]}}
and run clj -A:repl -e '(iniciar)' -r
-> iniciar is the function I´ve wanted to call@fabrao So you've answered your own question? Or do you still have a question?
I've answered my own question. Thanks