�
"�j� � �B � S r SSKrSrSrS\S\\ 4S jrS\S\4S jrg)
zFForge integrations: the PR-hosting service behind a checkout's remote.� N)�gh�pr�view�--web)�glab�mrr r �
remote_url�returnc �R � [ S[ U 5 ; a
[ 5 $ [ 5 $ )z�The PR-opening invocation for a checkout, derived from its remote URL.
The forge is per repo, not per installation, so it is read off the
remote's host: GitLab hosts get glab, anything else defaults to gh.
�gitlab)�list�_host�_GITLAB_PR_VIEW�_GITHUB_PR_VIEW)r s �C/Users/michael/dev/contexts/ctx/rewrite-it-in-rust/src/ctx/forge.py�pr_view_commandr s# � � �8�u�Z�/@�#@��V�V�o�V�V� �urlc � � U R SS5 S R SS5 S n[ R "