
    utgo                     p   S SK r S SKrS SKrS SKJrJr  SSS/0rS)S jrS)S jr	S)S	 jr
\R                  " \S
9\R                  " 5       S 5       5       r\R                  \SS9\R                  " SSSS9\R                  " SSSS\R                   " \" \5      5      SR%                  SR'                  \" \5      5      5      S9\R                  " SSSSS9\R                  " SSS9\R                  " SSSS S9\R                  " S!S"SS#S9S$ 5       5       5       5       5       5       5       r\R                  \S%S9\R                  " SSSS9\R                  " SSSS\R                   " \" \5      5      SR%                  SR'                  \" \5      5      5      S9\R                  " SSSSS9\R                  " SSS9\R                  " SSSS S9\R                  " S!S"SS#S9S& 5       5       5       5       5       5       5       r\R                  \S'S9\R                  " SSSS9\R                  " SSSS\R                   " \" \5      5      SR%                  SR'                  \" \5      5      5      S9\R                  " SSSSS9\R                  " SSS9\R                  " S!S"SS#S9S( 5       5       5       5       5       5       rg)*    N)DEFAULT_SHELLSSHELLShelp_option_namesz-hz--helpTc                 2    [         R                  " U SSUS9  g )NcyanTfgboldnlclicksechotextr   s     ./usr/lib/python3/dist-packages/userpath/cli.pyecho_successr      s    	KKdr2    c                 4    [         R                  " U SSUSS9  g )NredT)r	   r
   r   errr   r   s     r   echo_failurer      s    	KKTbd;r   c                 2    [         R                  " U SSUS9  g )NyellowTr   r   r   s     r   echo_warningr      s    	KK4r   )context_settingsc                      g )N r   r   r   userpathr      s     	r   zPrepends to the user PATH)r   
short_help	locations)requirednargsz-sz--shellshellszThe shell in which PATH will be modified. This can be selected multiple times and has no effect on Windows. The default shells are: {}z, )multipletypehelpz-az--all-shellsznUpdate PATH of all supported shells. This has no effect on Windows as environment settings are already global.)is_flagr'   z--homez"Explicitly set the home directory.)r'   z-fz--forcez-Update PATH even if it appears to be correct.z-qz--quietz+Suppress output for successful invocations.c                 ,   U(       d  U  H  n[         R                  " U5      (       a2  [        SR                  U5      5        [        R
                  " S5        MP  [         R                  " XaX#S9(       d  Ml  [        SR                  U5      5        [        R
                  " S5        M      [         R                  " XX#SS9  U(       d  [        S5        g	g	! [         a4  n[        [        U5      5        [        R
                  " S5         S	nAg	S	nAff = f)
zVPrepends to the user PATH. The shell must be restarted for the update to
take effect.
oThe directory `{}` is already in PATH! If you are sure you want to proceed, try again with the -f/--force flag.   r$   
all_shellshomeThe directory `{}` is already in PATH, pending a shell restart! If you are sure you want to proceed, try again with the -f/--force flag.Tr$   r-   r.   checkSuccess!   N)upin_current_pathr   formatsysexitin_new_pathprependr   	Exceptionr   strr    r$   r-   r.   forcequietlocationes           r   r:   r:      s    8 !H!!(++++16(+;
 JZZ006x0@
  " %


9
UYZ
 $ 	  SV   +C 
D*DDzAppends to the user PATHc                 ,   U(       d  U  H  n[         R                  " U5      (       a2  [        SR                  U5      5        [        R
                  " S5        MP  [         R                  " XaX#S9(       d  Ml  [        SR                  U5      5        [        R
                  " S5        M      [         R                  " XX#SS9  U(       d  [        S5        g	g	! [         a4  n[        [        U5      5        [        R
                  " S5         S	nAg	S	nAff = f)
zUAppends to the user PATH. The shell must be restarted for the update to
take effect.
r*   r+   r,   r/   Tr0   r2   r3   N)r4   r5   r   r6   r7   r8   r9   appendr   r;   r   r<   r=   s           r   rD   rD   U   s    8 !H!!(++++16(+;
 JZZ006x0@
  " %
		)zTXY
 $ 	  SVrB   z(Checks if locations are in the user PATHc                    U  H  n[         R                  " U5      (       a%  U(       d  [        SR                  U5      5        MA  MC  [         R                  " XQX#S9(       a2  [        SR                  U5      5        [        R                  " S5        M  [        SR                  U5      5        [        R                  " S5        M     g)z)Checks if locations are in the user PATH.zThe directory `{}` is in PATH!r,   z7The directory `{}` is in PATH, pending a shell restart!r+   z"The directory `{}` is not in PATH!r3   N)	r4   r5   r   r6   r9   r   r7   r8   r   )r    r$   r-   r.   r?   r@   s         r   verifyrF      s    2 h''=DDXNO ^^H
VRYYZbcdHHQK=DDXNOHHQK r   )T)r7   r   r   r4   userpath.shellsr   r   CONTEXT_SETTINGSr   r   r   groupversion_optioncommandargumentoptionChoicesortedr6   joinr:   rD   rF   r   r   r   <module>rQ      s   
   2 ($)9: 3<5 ./	  0	 
#3@[\d"5	fVn	%	88>tyyP^I_?`8a
 x hABdIt2abdIt2_`% a c C
 6 ]0%> 
#3@Z[d"5	fVn	%	88>tyyP^I_?`8a
 x hABdIt2abdIt2_`% a c C
 6 \0%> 
#3@jkd"5	fVn	%	88>tyyP^I_?`8a
 x hABdIt2_` a C
 6 l.r   