Function: projectile-tasks-from-just

projectile-tasks-from-just is a byte-compiled function defined in projectile.el.

Signature

(projectile-tasks-from-just PROJECT-ROOT)

Documentation

Return the recipes of the justfile in PROJECT-ROOT as tasks.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-tasks-from-just (project-root)
  "Return the recipes of the justfile in PROJECT-ROOT as tasks."
  (when-let* ((file (projectile--first-task-file
                     project-root projectile--justfile-names)))
    ;; A recipe starts in column zero, may be marked quiet with `@' and
    ;; may take parameters.  The lookahead keeps `:=', which is an
    ;; assignment, from reading as a recipe.
    (projectile--tasks-named
     (projectile--matches-in-file
      file "^@?\\([a-zA-Z_][a-zA-Z0-9_-]*\\)[^:\n]*:\\(?:[^=\n]\\|$\\)")
     "just" "just %s")))