Open
Description
Add several examples of using the -X flag
https://clojure.org/reference/deps_and_cli#_executing_a_function
Alias - user level
:project/new - clj-new
:project/jar - depstar
:inspect/reveal - reveal
Alias - project level
:project/run - run main function / entry point into the application (may be multiple, so the command line can over-ride the default. The function name by itself can be used if :ns-default
is set.
Command line - project related
Command line - from the class path - eg. clojure.core
clojure -X clojure.core/prn :foo 1 :bar 2
clojure -X clojure.pprint/pprint :foo 1 :bar 2
Examples here
https://insideclojure.org/2020/09/30/exec-example/ - starting a socket server