Function: projectile--json-tasks
projectile--json-tasks is a byte-compiled function defined in
projectile.el.
Signature
(projectile--json-tasks FILE KEY PREFIX COMMAND-FORMAT)
Documentation
Return the tasks under KEY in the JSON object in FILE.
Each key of that object becomes a task named PREFIX:KEY, running
COMMAND-FORMAT with the key substituted for its %s.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--json-tasks (file key prefix command-format)
"Return the tasks under KEY in the JSON object in FILE.
Each key of that object becomes a task named `PREFIX:KEY', running
COMMAND-FORMAT with the key substituted for its `%s'."
(when-let* ((json (projectile--read-json-file file
:object-type 'alist
:array-type 'list
:null-object nil
:false-object nil))
;; A JSON document that isn't an object parses to something
;; `alist-get' would choke on.
(object (and (consp json) json))
(entries (alist-get key object)))
(projectile--tasks-named (mapcar (lambda (entry) (symbol-name (car entry))) entries)
prefix command-format)))