practicalli / practicalli/clojure
Clojure exec examples
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 117
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the -X section of the Clojure deps and CLI reference and compare it with the linked Inside Clojure example. Add documented examples for the listed user-level and project-level aliases, command-line uses, and direct calls such as clojure.core/prn; done means the examples clearly cover these requested cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100