Function: projectile-run-command

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

Signature

(projectile-run-command COMPILE-DIR)

Documentation

Retrieve the run command for COMPILE-DIR.

The command is determined like this:

- first we check projectile-run-cmd-map for the last
run command that was invoked on the project

- then we check for projectile-project-run-cmd supplied
via .dir-locals.el

- finally we check for the default run command for a
project of that type

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-run-command (compile-dir)
  "Retrieve the run command for COMPILE-DIR.

The command is determined like this:

- first we check `projectile-run-cmd-map' for the last
run command that was invoked on the project

- then we check for `projectile-project-run-cmd' supplied
via .dir-locals.el

- finally we check for the default run command for a
project of that type"
  (or (gethash compile-dir projectile-run-cmd-map)
      projectile-project-run-cmd
      (projectile-default-run-command (projectile-project-type))))