-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Support for custom commands #113
Comments
I think this is a great idea. I like that you'd register commands in |
How does this feature request compare to eg. using deps.edn alias executables or perhaps babashka tasks? |
I think issue #106 (add |
This is how I work today -- I initially wrote an interactive wrapper for |
Is your feature request related to a problem? Please describe.
Add support for custom commands that could be executed by the
poly
tool.Describe the solution you'd like
The code for the different custom commands could be added to the
poly
alias in the rootdeps.edn
file. The commands could be specified inworkspace.edn
, e.g.:The function will take the internal workspace structure as input, like this:
It would be good also if these commands could support autocomplete, see issue #106.
Additional context
With this in place combined with support for autocomplete, the existing AOT compiled
poly
command (or a native version of it, see issue #100) would be less attractive to use, because they would not support custom commands and even the native version would be outperformed in terms of startup time by theshell
command (which executes instantly).I think this is the way to go, because then we could use the infrastructure that
tools.deps.alpha
supports, where code can easily be added and executed as compiled code.This would also allow people to contribute with new functionality to the
poly
tool, and it would be good if it could list the available custom commands out there and give som guidance in how to "install" them (how to add them to the:poly
alias).The text was updated successfully, but these errors were encountered: