This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-10
Channels
- # announcements (8)
- # aws-lambda (4)
- # babashka (60)
- # beginners (65)
- # braveandtrue (5)
- # chlorine-clover (3)
- # cider (10)
- # clj-kondo (2)
- # cljdoc (2)
- # cljfx (32)
- # cljsrn (5)
- # clojure (198)
- # clojure-berlin (10)
- # clojure-europe (22)
- # clojure-france (1)
- # clojure-losangeles (33)
- # clojure-nl (3)
- # clojure-norway (22)
- # clojure-uk (35)
- # clojurescript (12)
- # code-reviews (14)
- # core-typed (1)
- # cursive (56)
- # datomic (13)
- # depstar (7)
- # emacs (1)
- # events (1)
- # figwheel-main (3)
- # fulcro (30)
- # graphql (15)
- # helix (1)
- # jobs (5)
- # juxt (6)
- # kaocha (14)
- # klipse (2)
- # malli (12)
- # off-topic (88)
- # portal (4)
- # re-frame (3)
- # reagent (5)
- # shadow-cljs (6)
- # specter (6)
- # sql (73)
- # tools-deps (15)
- # windows (4)
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?
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
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