Function: projectile--phase-command

projectile--phase-command is a byte-compiled function defined in projectile.el.

Signature

(projectile--phase-command PHASE COMPILE-DIR)

Documentation

Resolve the command to run for lifecycle PHASE in COMPILE-DIR.

Checks the phase's command cache first, then its .dir-locals.el override variable and finally the default command for the current project type.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--phase-command (phase compile-dir)
  "Resolve the command to run for lifecycle PHASE in COMPILE-DIR.
Checks the phase's command cache first, then its .dir-locals.el
override variable and finally the default command for the current
project type."
  (let ((descriptor (projectile--phase-descriptor phase)))
    (or (gethash compile-dir (symbol-value (plist-get descriptor :cmd-map)))
        (symbol-value (plist-get descriptor :dir-local-var))
        (funcall (plist-get descriptor :default-fn) (projectile-project-type)))))