This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-27
Channels
- # announcements (13)
- # asami (12)
- # babashka (65)
- # beginners (62)
- # calva (14)
- # cider (8)
- # clara (11)
- # clj-kondo (16)
- # clojure (86)
- # clojure-europe (12)
- # clojure-gamedev (4)
- # clojure-nl (2)
- # clojure-sg (4)
- # clojure-uk (5)
- # clojurescript (206)
- # clojureverse-ops (11)
- # community-development (7)
- # conjure (12)
- # core-async (2)
- # core-logic (13)
- # cursive (49)
- # datalevin (1)
- # datomic (30)
- # deps-new (3)
- # duct (8)
- # events (5)
- # fulcro (10)
- # helix (5)
- # jobs (1)
- # klipse (5)
- # lsp (178)
- # luminus (1)
- # malli (8)
- # meander (3)
- # membrane (13)
- # missionary (1)
- # nrepl (5)
- # other-languages (4)
- # pedestal (4)
- # reitit (3)
- # releases (1)
- # reveal (27)
- # shadow-cljs (89)
- # tools-build (6)
- # tools-deps (11)
- # vim (2)
- # xtdb (64)
I figured this was worth sharing from the announcements thread since I feel like not many people know how to get help on "tools"...
...and for a specific tool:
And for getting help on deps
itself:
(! 654)-> clojure -X:deps help/doc
This api provides functions that can be executed from the Clojure tools using -X:deps.
-------------------------
clojure.tools.cli.api/basis
([params])
Create a basis from a set of deps sources and a set of aliases. By default, use
root, user, and project deps and no argmaps (essentially the same classpath you get by
default from the Clojure CLI).
...
while that's all true, it's less obvious and discoverable than it should be so my sympathy is with the OP
Oh, totally. That's why I figured I'd share it because it isn't "obvious" even though it is mentioned (briefly) in the docs.
I've added a comment to all my build.clj
files saying how to get help on the build file and I also add this to the README on my tools (e.g., deps-new
). It's super useful. Maybe the install
function could print how to get help on a newly installed tool? And maybe list
could also mention it?
Perhaps both commands could also give an example of the show
function too? I nearly always forget it needs :tool
the first time I type it in:
(! 656)-> clojure -Ttools show new
Key is missing value: new
(! 657)-> clojure -Ttools show :tool new
{:lib io.github.seancorfield/deps-new,
:coord
{:git/tag "v0.4.0",
:git/sha "0fb18a62fe068a2b62183c93e5441ababdd7bc6f",
:git/url ""}}
Default namespace: org.corfield.new
as always, would love any suggestions to go to https://ask.clojure.org
or to clojure-site issues if doc requests
Yup, on it. Will submit an "ask" with the above notes!