First way
In order to run REPL (nREPL) server via clojure cli tools with beautiful rebel capabilities just add following section into deps.edn file:
:aliases {
:repl {:extra-deps {cider/cider-nrepl {:mvn/version "0.18.0"}
nrepl {:mvn/version "0.4.5"}
refactor-nrepl {:mvn/version "2.4.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["-e" "(require,(quote,cider-nrepl.main)),"
"-e" "(cider-nrepl.main/init,[\"refactor-nrepl.middleware/wrap-refactor\",\"cider.nrepl/cider-middleware\"])"
"-e" "(use,'rebel-readline.main),(rebel-readline.main/-main)"]}
}
Then just run with command: clojure -A:repl
Second way
:aliases {
:repl {:extra-deps {cider/cider-nrepl {:mvn/version "0.18.0"}
nrepl {:mvn/version "0.4.5"}
refactor-nrepl {:mvn/version "2.4.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
}
}
clj -R:repl -m nrepl.cmdline -p 7888 -i -m "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"
This command runs repl without rebel capabilities. In order to enable rebel just call it:
user=> (use 'rebel-readline.main)
nil
user=> (rebel-readline.main/-main)
[Rebel readline] Type :repl/help for online help info
user=>
Also, read the docs https://nrepl.readthedocs.io/en/latest/usage/
In order to run REPL (nREPL) server via clojure cli tools with beautiful rebel capabilities just add following section into deps.edn file:
:aliases {
:repl {:extra-deps {cider/cider-nrepl {:mvn/version "0.18.0"}
nrepl {:mvn/version "0.4.5"}
refactor-nrepl {:mvn/version "2.4.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["-e" "(require,(quote,cider-nrepl.main)),"
"-e" "(cider-nrepl.main/init,[\"refactor-nrepl.middleware/wrap-refactor\",\"cider.nrepl/cider-middleware\"])"
"-e" "(use,'rebel-readline.main),(rebel-readline.main/-main)"]}
}
Then just run with command: clojure -A:repl
Second way
:aliases {
:repl {:extra-deps {cider/cider-nrepl {:mvn/version "0.18.0"}
nrepl {:mvn/version "0.4.5"}
refactor-nrepl {:mvn/version "2.4.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
}
}
clj -R:repl -m nrepl.cmdline -p 7888 -i -m "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"
This command runs repl without rebel capabilities. In order to enable rebel just call it:
user=> (use 'rebel-readline.main)
nil
user=> (rebel-readline.main/-main)
[Rebel readline] Type :repl/help for online help info
user=>
Also, read the docs https://nrepl.readthedocs.io/en/latest/usage/
Комментариев нет:
Отправить комментарий