Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make deps-new more usable as a library #54

Closed
seancorfield opened this issue Dec 3, 2023 — with Slack · 1 comment
Closed

Make deps-new more usable as a library #54

seancorfield opened this issue Dec 3, 2023 — with Slack · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

Copy link
Owner

seancorfield commented Dec 3, 2023

@behrica Carsten Behring asked:

  • 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.

Slack Message

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.

Me:

  • 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?
@seancorfield seancorfield added the enhancement New feature or request label Dec 3, 2023 — with Slack
@seancorfield seancorfield self-assigned this Dec 3, 2023
@seancorfield
Copy link
Owner Author

:src-dirs [] would seem like a reasonable option to add I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant