I'm excited to try the new clj exec, at first glance, its giving me some powershell vibes... which I'm not sure about 😛
One question, in the guide it says: clj -A:deps -X:install :jar '"/path/to.jar"', couldn't you include the deps in the :install alias itself? And thus you could then omit the -A:deps and just do: clj -X:install :jar ...
It says clj -X:deps mvn-install :jar '"/path/to.jar"'
Are you looking at the old (stable) guide @didibus?
The prerelease is https://clojure.org/reference/deps_and_cli_prerelease
But, yes, in general you can combine the exec stuff and the dependencies.
I have some examples of that here https://github.com/seancorfield/clj-new#clojure--x-usage
I probably was, it was from the first blog post about it on inside clojure
Ah yes, the latest blog post says: "so you can supply the deps and the function to execute together" never mind then
So that's awesome, now all we need is a convention to define alias in some file that you put in a git repo, and something like: clj -X:deps install-alias some-git-repo
and a corresponding clj -X:deps remove-alias some-git-repo
and we have ourselves a little NPM of some sort.
Well, it doesn't need to live inside -X:deps, but it would be an easier way to bootsrap it
You could even do something like: clj -X:deps install-alias :git some-git-repo :symlink true
and it could create a symlink in your user /bin
to: clj -X:your-alias
Sorry, none of this has to be included in deps, though I think it could be a good idea
Then clj could be used to install Clojure command line apps on your machine as well.
Might need some more hammock time