§
    cÌcC
  ã                   óZ   — d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	  G d„ de¦  «        Z
dS )	zGitLab command implementations.é   )ÚerrorsÚurlutils)ÚCommand)ÚOption)Únotec                   óV   — e Zd ZdZddgZ edde¬¦  «         edd¦  «        gZdd„Zd	S )Úcmd_gitlab_loginaÇ  Log into a GitLab instance.

    This command takes a GitLab instance URL (e.g. https://gitlab.com)
    as well as an optional private token. Private tokens can be created via the
    web UI.

    :Examples:

      Log into GNOME's GitLab (prompts for a token):

         brz gitlab-login https://gitlab.gnome.org/

      Log into Debian's salsa, using a token created earlier:

         brz gitlab-login https://salsa.debian.org if4Theis6Eich7aef0zo
    Úurlzprivate_token?Únamez&Name for GitLab site in configuration.)ÚhelpÚtypezno-checkz$Don't check that the token is valid.NFc                 óÀ  — ddl m} ddlm} |€^	 t	          j        |¦  «        d                              d¦  «        d         }n)# t          t          f$ r t          j
        d¦  «        ‚w xY w|€=t          d	t	          j        |d
¦  «        ¦  «         |j                             d¦  «        }|s"ddlm} ddlm}  | ||¦  «        |¬¦  «          ||||¬¦  «         d S )Né    )Úuié   )Ústore_gitlab_tokenr   ú.éþÿÿÿz&please specify a site name with --namez*Please visit %s to obtain a private token.z -/profile/personal_access_tokenszPrivate token)Úget_transport)ÚGitLab)Úprivate_token)r   r
   r   )Úbreezyr   Úforger   r   Ú	parse_urlÚsplitÚ
ValueErrorÚ
IndexErrorr   ÚCommandErrorr   ÚjoinÚ
ui_factoryÚget_passwordÚbreezy.transportr   r   )	Úselfr
   r   r   Úno_checkr   r   r   r   s	            ú</usr/lib/python3/dist-packages/breezy/plugins/gitlab/cmds.pyÚrunzcmd_gitlab_login.run9   sA  € ØÐÐÐÐÐØ-Ð-Ð-Ð-Ð-Ð-Øˆ<ð>ÝÔ)¨#Ñ.Ô.¨qÔ1×7Ò7¸Ñ<Ô<¸RÔ@��øÝ¥
Ð+ð >ð >ð >ÝÔ)Ø<ñ>ô >ð >ð>øøøð Ð ÝÐ=Ý”˜sÐ$FÑGÔGñIô Ið IàœM×6Ò6°ÑGÔGˆMØð 	DØ6Ð6Ð6Ð6Ð6Ð6Ø%Ð%Ð%Ð%Ð%Ð%ØˆF�=�= Ñ%Ô%°]ÐCÑCÔCÐCØÐ ¨#¸]ÐKÑKÔKÐKÐKÐKs   �3A Á&A*)NNF)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
takes_argsr   ÚstrÚtakes_optionsr&   © ó    r%   r	   r	      s{   € € € € € ð€Gð" Ð)Ð*€Jð 	ˆˆvÐDØð	ñ 	ô 	àˆˆzØ5ñ	7ô 	7ð
€MðLð Lð Lð Lð Lð Lr/   r	   N)r*   Ú r   r   Úcommandsr   Úoptionr   Útracer   r	   r.   r/   r%   ú<module>r4      s¹   ðð" &Ð %ðð ð ð ð ð ð ð ð  Ð Ð Ð Ð Ð ðð ð ð ð ð ð Ð Ð Ð Ð Ð ð,Lð ,Lð ,Lð ,Lð ,L�wñ ,Lô ,Lð ,Lð ,Lð ,Lr/   