Function: projectile-dashboard--commands
projectile-dashboard--commands is a byte-compiled function defined in
projectile.el.
Signature
(projectile-dashboard--commands ROOT)
Documentation
Return the configured lifecycle commands of the project at ROOT.
Each element is a cons of the phase symbol and the shell command that would run, or nil for a phase whose command is a function. Those are listed but never resolved: resolving one can pop up a prompt, which is the last thing to do in somebody's project-switch action.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-dashboard--commands (root)
"Return the configured lifecycle commands of the project at ROOT.
Each element is a cons of the phase symbol and the shell command that
would run, or nil for a phase whose command is a function. Those are
listed but never resolved: resolving one can pop up a prompt, which is
the last thing to do in somebody's project-switch action."
(let ((compile-dir (or (ignore-errors (projectile-compilation-dir)) root)))
(delq nil
(mapcar
(lambda (descriptor)
(let ((phase (plist-get descriptor :name)))
(if (projectile--phase-command-dynamic-p phase)
(cons phase nil)
(when-let* ((command
(ignore-errors
(funcall (plist-get descriptor :command-fn)
compile-dir))))
(cons phase command)))))
projectile--lifecycle-phases))))