Function: forge--host-arguments
forge--host-arguments is a byte-compiled function defined in
forge-client.el.
Signature
(forge--host-arguments OBJ-OR-HOST)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-client.el
;;; Internal
(defun forge--host-arguments (obj-or-host)
(let* ((repo (and (cl-typep obj-or-host 'forge-object)
(forge-get-repository obj-or-host)))
(host (if (stringp obj-or-host)
obj-or-host
(oref repo apihost))))
(list host (pcase (if repo
(eieio-object-class-name repo)
(nth 3 (cl-find host forge-alist
:key #'cadr :test #'equal)))
('forge-github-repository 'github)
('forge-gitlab-repository 'gitlab)
(_ 'github)))))