https://github.com/quan-nh/deps-repl
https://github.com/quan-nh/deps-repl
clj deps repl
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quan-nh/deps-repl
- Owner: quan-nh
- Created: 2018-03-31T03:02:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T03:49:22.000Z (over 7 years ago)
- Last Synced: 2025-03-13T09:44:37.019Z (7 months ago)
- Topics: clj, deps, repl
- Language: Clojure
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Call the -main function
### Clj
```sh
$ clj -m foo.other-bar a b c
hello a
```## Cljs with node.js modules
```sh
$ npm install
$ clj -A:cljs -m foo.baz foo 5
" foo"
```## REPL
```clj
$ clj
Clojure 1.9.0
user=> (load "foo/other_bar")
user=> (in-ns 'foo.other-bar)
foo.other-bar=> (-main :a :b :c)
hello :a
```## REPL Friendly Mode
With `rebel-readline` & `expound`
```clj
$ clj -A:friendly
[Rebel readline] Type :repl/help for online help info
user=> (require '[expound.alpha :as expound])
nil
user=> (expound/expound string? 1)
nil
-- Spec failed --------------------1
should satisfy
string?
-------------------------
Detected 1 error
user=>
```