Function: projectile-package-command

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

Signature

(projectile-package-command COMPILE-DIR)

Documentation

Retrieve the package command for COMPILE-DIR.

The command is determined like this:

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

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

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

Source Code

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

The command is determined like this:

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

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

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