Function: projectile--phase-command-dynamic-p
projectile--phase-command-dynamic-p is a byte-compiled function
defined in projectile.el.
Signature
(projectile--phase-command-dynamic-p PHASE)
Documentation
Non-nil when PHASE's command comes from a function for the current project.
A project type can register a lifecycle command as a function (e.g. the
CMake preset pickers, or a user's own :test/:run function). Such a
command is meant to be re-invoked - and may prompt - on every run, so its
result must not be frozen in the command cache after the first run. A
.dir-locals.el override always wins and is a plain string, so it is
never treated as dynamic.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--phase-command-dynamic-p (phase)
"Non-nil when PHASE's command comes from a function for the current project.
A project type can register a lifecycle command as a function (e.g. the
CMake preset pickers, or a user's own `:test'/`:run' function). Such a
command is meant to be re-invoked - and may prompt - on every run, so its
result must not be frozen in the command cache after the first run. A
`.dir-locals.el' override always wins and is a plain string, so it is
never treated as dynamic."
(let ((descriptor (projectile--phase-descriptor phase)))
(and (not (symbol-value (plist-get descriptor :dir-local-var)))
(functionp
(plist-get (alist-get (projectile-project-type) projectile-project-types)
(intern (format "%s-command" phase)))))))