Function: eca-mcp--parse-env-lines

eca-mcp--parse-env-lines is a natively compiled function defined in eca-mcp.el.

Signature

(eca-mcp--parse-env-lines LINES)

Documentation

Parse LINES (each "KEY=VALUE") into a plist for JSON encoding.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-mcp.el
(defun eca-mcp--parse-env-lines (lines)
  "Parse LINES (each \"KEY=VALUE\") into a plist for JSON encoding."
  (let (out)
    (dolist (l lines)
      (when-let* ((pos (string-match "=" l)))
        (let ((k (substring l 0 pos))
              (v (substring l (1+ pos))))
          (push v out)
          (push (intern (concat ":" k)) out))))
    (nreverse out)))