Testing libraries before adding them to a deps.edn
file by using -Sdeps '{...}'
is a frequent recommendation, but it's only mentioned in a single line in the Reference page.
I think it would be helpful if it (and the other flags) had examples with more detail about how they're used and why. Maybe something like:
- -Sdeps - pass the config data on the command line
For example, instead of creating a new deps.edn
file to experiment with a new library, you can use -Sdeps
to pass in the :deps
map to clojure
:
$ clojure -Sdeps '{:deps {org.clojure/core.match {:mvn/version "1.0.0"}}}'
Clojure 1.11.1
user=> (require '[clojure.core.match :refer [match]])
nil