Fork me on GitHub
#tools-deps
<
2020-09-10
>
didibus00:09:53

I'm excited to try the new clj exec, at first glance, its giving me some powershell vibes... which I'm not sure about 😛

didibus01:09:25

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

seancorfield01:09:25

It says clj -X:deps mvn-install :jar '"/path/to.jar"'

seancorfield01:09:38

Are you looking at the old (stable) guide @didibus?

seancorfield01:09:16

But, yes, in general you can combine the exec stuff and the dependencies.

didibus01:09:16

I probably was, it was from the first blog post about it on inside clojure

didibus01:09:46

Ah yes, the latest blog post says: "so you can supply the deps and the function to execute together" never mind then

didibus01:09:40

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.

didibus01:09:11

Well, it doesn't need to live inside -X:deps, but it would be an easier way to bootsrap it

didibus01:09:03

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

didibus01:09:33

Sorry, none of this has to be included in deps, though I think it could be a good idea

didibus01:09:08

Then clj could be used to install Clojure command line apps on your machine as well.

didibus01:09:56

Might need some more hammock time