How can I search for a function in namespaces not 'required' or 'used' in a Clojure source file? Basically what I'd like to do is have source files:
main.clj,
a.clj,
b.clj,
c.clj
all compiled together but not directly import / require / use a, b, or c in main. Instead I have main take a command line parameter that would then search for the right function (perhaps even just a fully qualified symbol).
I looked at ns-publics but it requires a namespace symbol. I tried bultitude to get all the namespaces from with the src/ dir and I get back the lib.a, lib.b, lib.c, lib.main etc, but since main doesn't use or require or otherwise refer to the other namespaces I get an error using ns-publics. No namespace lib.a found as per the try in the-ns source code.
How can I look at the public interface of code included in the project but not directly referred to by a specific file, or even a dependency of a reference?