is there a way to use deps-new as a library, not as a cli tool ?
My use case ist to re-use the logic which "copies" root folder to target and does substitutions including use of template-fn from my own code.
I do not want to create a full new clojure project but to "add" folders to an existing directory and re-use the template-fn logic.
I tried to call the org.corfield.new/create fn and it does work, but it makes the assumption that root dir and template.edn are on classpath, correct ?
This would not be the case in my scenario, they would exist at "local dir/file"
the find-root fn makes this assumption, at least.
I suspect that the code after line: https://github.com/seancorfield/deps-new/blob/b95abea24cd35e2d677b73a0fbfc01b5c67f9ffe/src/org/corfield/new.clj#L53 would not assume anymore that things are on classpath, so would be re-suable potenialy
Can you create an issue with your analysis and I'll take a look? I know some folks are using it as a library but I think they're just relying on the classpath... Being able to specify a different root, or multiple additional roots, would probably be a good enhancement.
If create took an option that specified additional directories to search, it could pass that to find-root as additions to the classpath roots... would that work for you?
:src-dirs [] would seem like a reasonable option to add I think @carsten.behring?
(I created an issue -- see the main channel... feel free to add thoughts to it)
OK, :src-dirs is available on develop if you want to try that out with the latest commits.