Function: projectile--run-lifecycle-phase
projectile--run-lifecycle-phase is a byte-compiled function defined in
projectile.el.
Signature
(projectile--run-lifecycle-phase PHASE SHOW-PROMPT &optional BASE)
Documentation
Run the current project's command for lifecycle PHASE.
PHASE is a symbol naming an entry of projectile--lifecycle-phases.
With SHOW-PROMPT non-nil force prompting for the command, as in
projectile--run-project-cmd. BASE, when non-nil, is the directory the
phase's compilation directory is resolved against instead of the project
root (see projectile-compilation-dir).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--run-lifecycle-phase (phase show-prompt &optional base)
"Run the current project's command for lifecycle PHASE.
PHASE is a symbol naming an entry of `projectile--lifecycle-phases'.
With SHOW-PROMPT non-nil force prompting for the command, as in
`projectile--run-project-cmd'. BASE, when non-nil, is the directory the
phase's compilation directory is resolved against instead of the project
root (see `projectile-compilation-dir')."
(let* ((descriptor (projectile--phase-descriptor phase))
(directory (projectile-compilation-dir base))
(command (funcall (plist-get descriptor :command-fn) directory))
(command-map (if (projectile--cache-project-commands-p)
(symbol-value (plist-get descriptor :cmd-map)))))
(projectile--run-project-cmd command command-map
:command-type phase
:directory directory
:show-prompt show-prompt
:prompt-prefix (projectile--lifecycle-prompt descriptor base)
:save-buffers (plist-get descriptor :save-buffers)
:no-cache (projectile--phase-command-dynamic-p phase)
:use-comint-mode (projectile-use-comint-mode-p phase))))