Created
November 9, 2016 08:27
-
-
Save jwdevantier/83d13b730eb4af5fb01f3dbe3332e3bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For example, here's the excerpt of `cljs-repl`: | |
``` | |
(b/deftask cljs-repl | |
"Start a ClojureScript REPL server. | |
The default configuration starts a websocket server on a random available | |
port on localhost." | |
[b ids BUILD_IDS #{str} "Only inject reloading into these builds (= .cljs.edn files)" | |
i ip ADDR str "The IP address for the server to listen on." | |
n nrepl-opts NREPL_OPTS edn "Options passed to the `repl` task." | |
p port PORT int "The port the websocket server listens on." | |
w ws-host WSADDR str "The (optional) websocket host address to pass to clients." | |
s secure bool "Flag to indicate whether the client should connect via wss. Defaults to false."] | |
...) | |
``` | |
Typing `boot cljs-repl -h` from the command-line, you get: | |
``` | |
$ boot cljs-repl -h | |
Start a ClojureScript REPL server. | |
The default configuration starts a websocket server on a random available | |
port on localhost. | |
Options: | |
-h, --help Print this help info. | |
-b, --ids BUILD_IDS Conj [BUILD IDS] onto only inject reloading into these builds (= .cljs.edn files) | |
-i, --ip ADDR ADDR sets the IP address for the server to listen on. | |
-n, --nrepl-opts NREPL_OPTS NREPL_OPTS sets options passed to the `repl` task. | |
-p, --port PORT PORT sets the port the websocket server listens on. | |
-w, --ws-host WSADDR WSADDR sets the (optional) websocket host address to pass to clients. | |
-s, --secure Flag to indicate whether the client should connect via wss. Defaults to false. | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment