clj:tldr:e6b2a
This command is used to start a ClojureScript REPL (read-eval-print loop) using the ClojureScript compiler.
Here's a breakdown of the command:
clj
: This is the command-line launcher for Clojure. It is used to run Clojure programs and tools.
-Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}'
: This option specifies the dependencies for the project. In this case, it adds the dependency on the ClojureScript library with version "1.10.758". The -Sdeps
option is used to specify additional dependencies in Clojure 1.9 and later versions.
--main cljs.main
: This option specifies the main namespace or function to be executed. In this case, cljs.main
is the namespace that contains the main functions for the ClojureScript REPL.
--repl
: This option starts a REPL after loading the specified main namespace or function. The REPL allows you to interactively evaluate ClojureScript expressions.
By running this command, you will start the ClojureScript REPL with the specified version of ClojureScript as a dependency. You can then interactively evaluate ClojureScript expressions and experiment with ClojureScript code.