Function: cider-shadow-select-cljs-init-form

cider-shadow-select-cljs-init-form is a byte-compiled function defined in cider.el.

Signature

(cider-shadow-select-cljs-init-form)

Documentation

Generate the init form for a shadow-cljs select-only REPL.

We have to prompt the user to select a build, that's why this is a command, not just a string.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
(defun cider-shadow-select-cljs-init-form ()
  "Generate the init form for a shadow-cljs select-only REPL.
We have to prompt the user to select a build, that's why this is a command,
not just a string."
  (let ((form "(do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/nrepl-select %s))")
        (options (or cider-shadow-default-options
                     (completing-read "Select shadow-cljs build: "
                                      (cider--shadow-get-builds)))))
    (format form (cider-normalize-cljs-init-options options))))