Function: cider--resolve-command

cider--resolve-command is a byte-compiled function defined in cider.el.

Signature

(cider--resolve-command COMMAND)

Documentation

Find COMMAND in exec path (see variable exec-path(var)/exec-path(fun)).

Return nil if not found. In case default-directory is non-local we assume the command is available.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
;; TODO: Implement a check for command presence over tramp
(defun cider--resolve-command (command)
  "Find COMMAND in exec path (see variable `exec-path').
Return nil if not found.  In case `default-directory' is non-local we
assume the command is available."
  (when-let* ((command (or (and (file-remote-p default-directory) command)
                           (executable-find command)
                           (executable-find (concat command ".bat")))))
    (shell-quote-argument command)))