A proof-of-concept command-line client for nREPL. Please see e.g. REPL-y for a proper command-line nREPL client @ https://github.com/trptcolin/reply/
A proof-of-concept command-line client for nREPL. Please see e.g. REPL-y for a proper command-line nREPL client @ https://github.com/trptcolin/reply/
(ack-server server options)
Acknowledge the port of this server to another nREPL server running on :ack port. Takes nREPL server map and processed CLI options map. Prints a message describing the acknowledgement between servers. Returns nil.
Acknowledge the port of this server to another nREPL server running on :ack port. Takes nREPL server map and processed CLI options map. Prints a message describing the acknowledgement between servers. Returns nil.
(args->cli-options args)
Takes CLI args list and returns vector of parsed options map and remaining args.
Takes CLI args list and returns vector of parsed options map and remaining args.
(connect-to-server {:keys [host port socket] :as options})
Connects to a running nREPL server and runs a REPL. Exits program when REPL is closed. Takes a map of nREPL CLI options.
Connects to a running nREPL server and runs a REPL. Exits program when REPL is closed. Takes a map of nREPL CLI options.
(connection-opts options)
Takes map of nREPL CLI options Returns map of processed options used to connect or start a nREPL server.
Takes map of nREPL CLI options Returns map of processed options used to connect or start a nREPL server.
(die & msg)
Print
s items in msg
to err and then exits with a status of 2.
`Print`s items in `msg` to *err* and then exits with a status of 2.
(dispatch-commands options)
Look at options to dispatch a specified command. Takes CLI options map. May return a server map, nil, or exit.
Look at options to dispatch a specified command. Takes CLI options map. May return a server map, nil, or exit.
(display-help)
Prints the help copy to the screen and exits the program with exit code 0.
Prints the help copy to the screen and exits the program with exit code 0.
(display-version)
Prints nREPL version to the screen and exits the program with exit code 0.
Prints nREPL version to the screen and exits the program with exit code 0.
(exit status)
Requests that the process exit with the given status
. Does not
return.
Requests that the process exit with the given `status`. Does not return.
(interactive-repl server options)
Runs an interactive repl if :interactive CLI option is true otherwise puts the current thread to sleep Takes nREPL server map and processed CLI options map. Returns nil.
Runs an interactive repl if :interactive CLI option is true otherwise puts the current thread to sleep Takes nREPL server map and processed CLI options map. Returns nil.
(parse-cli-values options)
Converts relevant command line argument values to their config representation.
Converts relevant command line argument values to their config representation.
(repl-intro)
Returns nREPL interactive repl intro copy and version info as a new-line separated string.
Returns nREPL interactive repl intro copy and version info as a new-line separated string.
(save-port-file server _options)
Writes a file relative to project classpath with port number so other tools can infer the nREPL server port. Takes nREPL server map and processed CLI options map. Returns nil.
Writes a file relative to project classpath with port number so other tools can infer the nREPL server port. Takes nREPL server map and processed CLI options map. Returns nil.
(server-opts options)
Takes a map of nREPL CLI options Returns map of processed options to start an nREPL server.
Takes a map of nREPL CLI options Returns map of processed options to start an nREPL server.
(server-started-message server options)
Returns nREPL server started message that some tools rely on to parse the connection details from. Takes nREPL server map and processed CLI options map. Returns connection header string.
Returns nREPL server started message that some tools rely on to parse the connection details from. Takes nREPL server map and processed CLI options map. Returns connection header string.
(start-server {:keys [port bind socket handler transport greeting tls-keys-str
tls-keys-file]})
Creates an nREPL server instance. Takes map of CLI options. Returns nREPL server map.
Creates an nREPL server instance. Takes map of CLI options. Returns nREPL server map.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close