Function: forge--host-arguments
forge--host-arguments is a natively compiled function defined in
forge-client.el.
Signature
(forge--host-arguments OBJ-OR-HOST)
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/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)))))