
    c                     V    d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ d Zd ZdS )	z8The ``archive`` command makes an archive of the project.    )absolute_importprint_function)load_project)console_utilsN)prepare_commandc                     |rt          | dddd          }|sdS t          |           }t          j        |||          }|rt	          |j                   dS t          j        |           dS )zDMake an archive of the project.

    Returns:
        exit code
    production_defaultsNT)ui_modeconda_environmentcommand_nameall   r   )r   r   project_opsarchiveprintstatus_descriptionr   print_status_errors)project_dirarchive_filename	pack_envsprepare_statusprojectstatuss         Elib/python3.11/site-packages/anaconda_project/internal/cli/archive.pyarchive_commandr      s      (1F;?6:-1	3 3 3
  	1;''G *:IFFF f'(((q)&111q    c                 B    t          | j        | j        | j                  S )z6Start the archive command and return exit status code.)r   	directoryfilenamer   )argss    r   mainr!   +   s    4>4=$.IIIr   )__doc__
__future__r   r   *anaconda_project.internal.cli.project_loadr   anaconda_project.internal.clir   anaconda_project.project_opsr   %anaconda_project.internal.cli.preparer   r   r!    r   r   <module>r)      s    ? > 6 6 6 6 6 6 6 6 C C C C C C 7 7 7 7 7 7 2 2 2 2 2 2 A A A A A A  4J J J J Jr   