
    <Bhw                     \    S r SSKJrJrJr  SSKJr  SSKJr  S\S\4S jr	S	\S
\S\
4S jrg)zjCLI implementation for `conda export`.

Dumps specified environment package specifications to the screen.
    )ArgumentParser	Namespace_SubParsersAction   )YAML_EXTENSIONS)CondaValueErrorsub_parsersreturnc                    SSK Jn  SSKJnJn  SnUnU" S5      nU R
                  "  SUUUS.UD6nUR                  SS	S
SS9  UR                  SSSS9  U" U5        UR                  SSS SSS9  UR                  SSSSSS9  UR                  SSSSSS9  U" U5        UR                  SSSSSS9  UR                  SS9  U$ )Nr   )dals   )add_parser_jsonadd_parser_prefixzExport a given environmentza
        Examples::

            conda export
            conda export --file FILE_NAME

        )helpdescriptionepilogz-cz	--channelappendz+Additional channel to include in the export)actionr   z--override-channels
store_truez Do not include .condarc channelsz-fz--fileFzFile name or path for the exported environment. Note: This will silently overwrite any existing file of the same name in the current directory.)defaultrequiredr   z--no-buildsz,Remove build specification from dependencies)r   r   r   r   z--ignore-channelsz0Do not include channel names with package names.z--from-historyz5Build environment spec from explicit specs in historyzconda.cli.main_export.execute)func)export)
auxlib.ishr   helpersr   r   
add_parseradd_argumentset_defaults)	r	   kwargsr   r   r   summaryr   r   ps	            5lib/python3.13/site-packages/conda/cli/main_export.pyconfigure_parserr#      s9   !;*GK	F 				
 	A NN:	   NN/  
 aNN9  
 NN;   NN?   ANND   NN7N8H    argsparserc                    SSK JnJnJn  SSKJn  SSKJn  U" X 5      nU" U" U5      UU R                  U R                  U R                  S9nU R                  (       a  UR                  5         U R                  b  UR                  U R                  5        U R                  (       ai  U R                  n	U	R!                  ["        5      (       d  [%        S["         SU	 35      e['        U R                  S	5       n
UR)                  U
S
9  S S S 5        U R*                  (       a  U" UR-                  5       5        g[/        UR)                  5       SS9  g! , (       d  f       NO= f)Nr   )contextdetermine_target_prefixenv_name)from_environmentr   )stdout_json)	no_buildsignore_channelsfrom_historyz)Export files must have a valid extension z: w)stream )endr   )base.contextr(   r)   r*   env.envr+   commonr,   r-   r.   r/   override_channelsremove_channelschanneladd_channelsfileendswithr   r   opento_yamljsonto_dictprint)r%   r&   r(   r)   r*   r+   r,   prefixenvfilenamefps              r"   executerF   b   s   II*#$W3F
..,,&&C ||&yy99   11!;O;LBxjY  $))S!RKKrK" "yyCKKM"  	ckkm$ "!s   8E
EN)__doc__argparser   r   r   common.configurationr   
exceptionsr   r#   intrF    r$   r"   <module>rM      sN   
  3 (L"3 L. L`#) #^ # #r$   