Function: projectile-files-via-ext-command
projectile-files-via-ext-command is a byte-compiled function defined
in projectile.el.
Signature
(projectile-files-via-ext-command ROOT COMMAND)
Documentation
Get a list of relative file names in the project ROOT by executing COMMAND.
If command is nil or an empty string, return nil.
This allows commands to be disabled.
Only text sent to standard output is taken into account.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-files-via-ext-command (root command)
"Get a list of relative file names in the project ROOT by executing COMMAND.
If `command' is nil or an empty string, return nil.
This allows commands to be disabled.
Only text sent to standard output is taken into account."
(when (and (stringp command) (not (string-empty-p command)))
(let ((default-directory root))
(with-temp-buffer
(shell-command command t "*projectile-files-errors*")
(let ((shell-output (buffer-substring (point-min) (point-max))))
(mapcar (lambda (f)
(string-remove-prefix "./" f))
(split-string (string-trim shell-output) "\0" t)))))))