This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-12
Channels
- # adventofcode (78)
- # announcements (5)
- # babashka (22)
- # beginners (230)
- # calva (18)
- # cider (26)
- # clj-kondo (1)
- # cljs-dev (1)
- # clojure (14)
- # clojure-austin (1)
- # clojure-dev (3)
- # clojure-europe (30)
- # clojure-switzerland (1)
- # clojure-uk (26)
- # clojurescript (33)
- # conjure (2)
- # cursive (2)
- # data-science (1)
- # datomic (9)
- # docker (1)
- # emacs (8)
- # events (4)
- # fulcro (64)
- # lambdaisland (3)
- # luminus (1)
- # off-topic (3)
- # pathom (6)
- # portal (1)
- # programming-beginners (5)
- # shadow-cljs (22)
- # tools-deps (8)
- # xtdb (4)
I am trying to remember what the -f
option does in this alias, is it specifying the file to look in for the preceeding -i
init path option?
Or does it have a different meaning?
:repl/rebel-nrepl
{:extra-deps {nrepl/nrepl {:mvn/version "0.8.3"}
cider/cider-nrepl {:mvn/version "0.25.5"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware]"
"-i"
"-f" "rebel-readline.main/-main"]}
Thanks.That's an argument to nrepl.cmdline
@jr0cket
Ah, that makes sense, thanks.
-f
is equivalent to --repl-fn
so I guess it's how you specify a particular REPL to run instead of the default nREPL one.
(I had to go look in the source for that -- I don't use nREPL)
Oh that's very useful. I'll take a look when I get chance. Thanks.
small update from babashka.deps
, a way to programmatically invoke a clojure process without additional installers, cross platform (it's using deps.clj
under the hood (https://github.com/borkdude/deps.clj))
$ bb "(->> (deps/clojure '[-X:deps tree :format :edn] {:out :string}) deref :out edn/read-string :children keys (take 2))"
(org.clojure/clojure org.clojure/tools.cli)