Function: cider-start-menu--apply-args

cider-start-menu--apply-args is a byte-compiled function defined in cider.el.

Signature

(cider-start-menu--apply-args ARGS COMMAND)

Documentation

Call jack-in COMMAND with the cider-start-menu ARGS applied.

Each active argument is translated into a let-binding of the matching option, so the underlying commands stay usable outside the transient.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider.el
(defun cider-start-menu--apply-args (args command)
  "Call jack-in COMMAND with the `cider-start-menu' ARGS applied.
Each active argument is translated into a `let'-binding of the matching
option, so the underlying commands stay usable outside the transient."
  (let ((cider-clojure-cli-aliases
         (or (transient-arg-value "--aliases=" args)
             cider-clojure-cli-aliases))
        (cider-default-cljs-repl
         (if-let* ((repl (transient-arg-value "--cljs-repl=" args)))
             (intern repl)
           cider-default-cljs-repl))
        (cider-edit-jack-in-command
         (or (and (member "--edit-command" args) t)
             cider-edit-jack-in-command)))
    (funcall command nil)))