+
    :1jo                    ~    R t ^ RIHt ^ RIt^ RIHt ^ RIHt ^ RIH	t	 ]'       d   ^ RI
HtHtHt R R ltR	 R
 ltR# )zCLI implementation for `conda rename`.

Renames an existing environment by cloning it and then removing the original environment.
)annotationsN)partial)TYPE_CHECKING)CondaEnvException)ArgumentParser	Namespace_SubParsersActionc                    V ^8  d   QhRRRR/# )   sub_parsersr   returnr    )formats   "5lib/python3.14/site-packages/conda/cli/main_rename.py__annotate__r      s     . ."3 .. .    c           	         ^RI Hp ^RIHpHp RpV! RV R24      pV! R4      pV P
                  ! RRVRVR	V/VB pV! V4       VP                  R
RR7       V! V4       VP                  RR7       V# )r
   )dals)add_output_and_prompt_optionsadd_parser_prefixzRename an existing environment.z	
        z

        This command renames a conda environment via its name (-n/--name) or
        its prefix (-p/--prefix).

        The base environment and the currently-active environment cannot be renamed.
        z
        Examples::

            conda rename -n test123 test321

            conda rename --name test123 test321

            conda rename -p path/to/test123 test321

            conda rename --prefix path/to/test123 test321

        helpdescriptionepilogdestinationz#New name for the conda environment.)r   zconda.cli.main_rename.execute)func)rename)
auxlib.ishr   helpersr   r   
add_parseradd_argumentset_defaults)	r   kwargsr   r   r   summaryr   r   ps	   &,       r   configure_parserr$      s    !I/G			 			K 	F 	 		  	 		
 	A aNN='LNM!!$NN7N8Hr   c               $    V ^8  d   QhRRRRRR/# )r
   argsr   parserr   r   intr   )r   s   "r   r   r   E   s!     > >) >^ > >r   c                  a aaa	a
aa ^RI Ho ^RIHo ^RIHo
 ^RIHp ^RIH	o ^RI
Hp VP                  4       pVP                  4        VP                  4       '       d   \        R4      hSP                   '       d7   VP"                  P%                  SP                   4      '       d   \        R4      hWB! SP&                  4      8X  d   \        R	4      h\)        VP"                  4      o\*        P,                  S P.                  9   d&   V! S P.                  4      pVP1                  R
R7       MVP3                  S P.                  4      p\)        VP"                  4      o	S P4                  '       g0   VP7                  4       '       d   \        RVP"                   R24      hR VV VV	V
VV3R llpS P4                  '       d/   V! S	S P8                  R7      ;_uu_ 4        V! 4        RRR4       ^ # V! 4        ^ #   + '       g   i     ^ # ; i)z:Executes the command for renaming an existing environment.)DRY_RUN_PREFIX)context)install)
PrefixData)rm_rf)rename_contextz(The 'base' environment cannot be renamedz$Cannot rename the active environmentzMCannot rename an environment if it is configured as `default_activation_env`.T)expand_pathzThe environment 'z&' already exists. Override with --yes.c                   V ^8  d   QhRR/# )r
   r   Noner   )r   s   "r   r   execute.<locals>.__annotate__k   s      d r   c            
     D  < \        SP                  SSSP                  SP                  R 7      \        SS4      3p V  F^  pSP                  '       dC   \        S RVP                  P                   RRP                  VP                  4       24       KW  V! 4        K`  	  R# ))quietjson ,N)
r   cloner5   r6   dry_runprintr   __name__joinr&   )	actionsr   r*   r&   r+   r   r,   r.   sources	     r   clone_and_remove!execute.<locals>.clone_and_removek   s    mm\\ E6"	(
 D|||($))*<*<)=Qsxx		?R>STU	 r   )r:   N)base.constantsr*   base.contextr+   clir,   core.prefix_datar-   gateways.disk.deleter.   gateways.disk.updater/   from_contextassert_environmentis_baser   active_prefixprefix_pathsamefiledefault_activation_prefixstrossepr   validate_path	from_nameyesexistsr:   )r&   r'   r-   r/   source_prefix_datadest_prefix_datar@   r*   r+   r   r,   r.   r?   s   f&     @@@@@@r   executerX   E   s   /&-,5 $002))+!!## JKK!3!?!?!H!H" "   FGGZ(I(IJJ[
 	
 #//0F 
vv!!!%d&6&67&&4&8%//0@0@A&223K888(//11 0 < <==cd
 	
 & xxxK>> ?  		 ?> s   G88H		)__doc__
__future__r   rP   	functoolsr   typingr   conda.exceptionsr   argparser   r   r   r$   rX   r   r   r   <module>r_      s/   
 # 	    .EE.b>r   