Function: projectile--run-subproject-phase

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

Signature

(projectile--run-subproject-phase PHASE SHOW-PROMPT)

Documentation

Run lifecycle PHASE in the nearest subproject of the current file.

SHOW-PROMPT is as in projectile--run-lifecycle-phase, which does the actual work - the subproject is just the directory the phase resolves its compilation directory against.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--run-subproject-phase (phase show-prompt)
  "Run lifecycle PHASE in the nearest subproject of the current file.
SHOW-PROMPT is as in `projectile--run-lifecycle-phase', which does the
actual work - the subproject is just the directory the phase resolves
its compilation directory against."
  (let* ((subproject (projectile-subproject-root))
         ;; `projectile--phase-command' falls back to the default command
         ;; for `(projectile-project-type)'; bind it to the member's own
         ;; type so a Rust crate in a JavaScript repo runs `cargo test'
         ;; rather than the repository's `npm test'.  The dir-local
         ;; override and the per-directory command cache still win over it.
         (projectile-project-type (projectile-subproject-type subproject)))
    (projectile--run-lifecycle-phase phase show-prompt subproject)))