This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-23
Channels
- # babashka (22)
- # beginners (8)
- # calva (7)
- # clj-kondo (65)
- # cljdoc (9)
- # cljsrn (1)
- # clojure (53)
- # clojure-australia (4)
- # clojure-europe (49)
- # clojure-gamedev (2)
- # clojure-italy (13)
- # clojure-nl (1)
- # clojure-spec (19)
- # clojure-uk (4)
- # clojurescript (48)
- # clojureverse-ops (1)
- # core-async (3)
- # css (2)
- # cursive (15)
- # datomic (6)
- # degree9 (2)
- # depstar (4)
- # emacs (2)
- # find-my-lib (1)
- # fulcro (16)
- # graalvm (11)
- # gratitude (1)
- # honeysql (9)
- # introduce-yourself (2)
- # jobs (1)
- # joker (2)
- # livestream (2)
- # malli (16)
- # nbb (4)
- # news-and-articles (2)
- # off-topic (1)
- # pathom (7)
- # polylith (10)
- # practicalli (1)
- # re-frame (7)
- # reitit (1)
- # releases (3)
- # remote-jobs (1)
- # rewrite-clj (19)
- # shadow-cljs (10)
- # tools-build (1)
- # tools-deps (9)
- # uncomplicate (1)
- # vim (3)
- # xtdb (44)
Is there a way to work nicely with a tool which does not take a map as its argument?
you can create a proxy function which will accept a map as an argument an call the tool you want to use
So if I'm getting it from github I have to either provide a compatibility layer on my own or MR the author?
if this “tool” is hosted on github I think it wasn’t designed to work as a tool for clojure cli, am I right?
then I think the best option is to file an issue about additional clojure cli support and in the mean time add a wrapper into your project
@UK0810AQ2 The -X
/`-T` stuff is still pretty new so a lot of library/tool maintainers haven't caught up with it yet. For -T
, a project needs :tools/usage
in its deps.edn
file, as well as a compatible entry point. Most project maintainers seem amenable to adding this I think.
Polylith just accepted a PR to make it installable via -Ttools install
and Cognitect's test-runner
added a -X
-compatible API namespace a while back after I raised that issue.
In both cases, I started out by writing my own exec fn wrapper that called into the project's code -- until the issue was resolved directly in the project.