-
Notifications
You must be signed in to change notification settings - Fork 157
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 generating classpaths embedded on command line #1703
Comments
@quintesse tell me if i'm crazy or we should just do this :) |
It doesn't seem totally crazy, no. Because I don't think you're interested in passing in the classpath as an argument to a script, right? (Which is what Edit: wait, I now re-read your example and see that you do actually suggest that. Ok, then yes, it seems like a perfect example of something like that. Not sure if I'd go with the Something like |
My usecase is https://github.com/jupyter-java/jbang-catalog/blob/main/installkernel.java where some of kernels especially the kotlin one expects a seperate classpath list as argument. Similar to the sql drive tooling above. Reason for deps: prefix is that we allow https urls to GitHub repo as deps too which would need treating differently i think? |
You're probably right. I don't think it would be impossible to come up with a scheme where we wouldn't have to use the prefix, but it might mean that we'd have to choose one interpretation over another. Still, I like the simplicity of In that case we can add the option to add a prefix: And then we can use:
and
(Btw, using "dep" here for the examples, but we can do "deps" too of course.) |
I find that sometimes cli's out there need a classpath and it can be quite tedious to type out.
I wonder if like done in #1043 where %{url} fetches content and make it available as a file we could support %{deps://DEPS syntax} to generate classpath.
i.e.
jbang sqlline@maxandersen -cp %{deps:org.hsqldb:hsqldb:RELEASE,..} other args
The text was updated successfully, but these errors were encountered: