Function: cider--resolve-command

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

Signature

(cider--resolve-command COMMAND)

Documentation

Find COMMAND in the variable exec-path(var)/exec-path(fun), or on a remote PATH over TRAMP.

Return the (shell-quoted) absolute path if found, otherwise nil. When default-directory is remote, executable-find is asked to search on that host instead of the local one.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-jack-in.el
;;; Command resolution

(defun cider--resolve-command (command)
  "Find COMMAND in the variable `exec-path', or on a remote PATH over TRAMP.
Return the (shell-quoted) absolute path if found, otherwise nil.  When
`default-directory' is remote, `executable-find' is asked to search on
that host instead of the local one."
  (let ((remote (file-remote-p default-directory)))
    (when-let* ((found (or (executable-find command remote)
                           (executable-find (concat command ".bat") remote))))
      (shell-quote-argument found))))