Function: sops--input-type-for

sops--input-type-for is a natively compiled function defined in sops.el.

Signature

(sops--input-type-for FILENAME)

Documentation

Return input-type for FILENAME from sops-input-type-overrides, or nil.

Pairs in the alist are tried in list order; the first match wins.

Source Code

;; Defined in /nix/store/vihl6lkzddv9xrsrsznvqdjq27g2i30p-emacs-packages-deps/share/emacs/site-lisp/elpa/sops-20260920.2121/sops.el
(defun sops--input-type-for (filename)
  "Return input-type for FILENAME from `sops-input-type-overrides', or nil.
Pairs in the alist are tried in list order; the first match wins."
  (when filename
    (cdr (cl-find-if (lambda (pair) (string-match-p (car pair) filename))
                     sops-input-type-overrides))))