Function: eca-providers--status-label

eca-providers--status-label is a natively compiled function defined in eca-providers.el.

Signature

(eca-providers--status-label STATUS SOURCE)

Documentation

Return a label string for auth STATUS from SOURCE.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-providers.el
(defun eca-providers--status-label (status source)
  "Return a label string for auth STATUS from SOURCE."
  (pcase status
    ((or "authenticated" "expiring" "expired")
     (if (member source '("config" "env"))
         (propertize "✓ configured" 'face 'eca-providers-authenticated-face)
       (propertize "✓ authenticated" 'face 'eca-providers-authenticated-face)))
    ("local"         (propertize "local" 'face 'eca-providers-local-face))
    ("not-running"   (propertize "not running" 'face 'eca-providers-unauthenticated-face))
    ("unauthenticated" (propertize "✗ not authenticated" 'face 'eca-providers-unauthenticated-face))
    (_               (propertize "not configured" 'face 'shadow))))