
    c
                     t    d Z ddlmZmZ ddlZddlmZ ddlmZ ddl	m
c mc mZ  G d de          Zd ZdS )	z-Command-line-specific project load utilities.    )absolute_importprint_functionN)Project)Frontendc                   6     e Zd Z fdZd Zd Zd Zd Z xZS )CliFrontendc                 V    t          t          |                                            dS )zFrontend for printing.N)superr   __init__)self	__class__s    Jlib/python3.11/site-packages/anaconda_project/internal/cli/project_load.pyr   zCliFrontend.__init__   s%    k4  ))+++++    c                 $    t          |           d S N)printr   messages     r   infozCliFrontend.info   s    gr   c                 <    t          |t          j                   d S )N)file)r   sysstderrr   s     r   errorzCliFrontend.error   s    gCJ''''''r   c                     t           j                            |           t           j                                         d S r   )r   stdoutwriteflushr   datas     r   partial_infozCliFrontend.partial_info   2    

r   c                     t           j                            |           t           j                                         d S r   )r   r   r   r   r   s     r   partial_errorzCliFrontend.partial_error"   r"   r   )	__name__
__module____qualname__r   r   r   r!   r$   __classcell__)r   s   @r   r   r      st        , , , , ,  ( ( (        r   r   c                    t          | t                      d          }|j        r|S t          j                    rd}|j        }|r|dk     r|d         }t          |j                   t          j        |j	        d          }|sn]|
                    |           |                                 ||j        }}|t          |          t          |          k    z  }|r|dk     |s|                                 |S )z1Load a Project, fixing it if needed and possible.T)frontend
must_existr      F)default)r   r   unfixable_problemsconsole_utilsstdin_is_interactivefixable_problemsr   textconsole_ask_yes_or_no
fix_promptfixuse_changes_without_savinglensave)dirnameprojectregressionsproblemsproblem
should_fix
o_problemss          r   load_projectr@   '   s   g$GGGG ! )++ + 	>;? 	>
 qkG',&<W=OY^___J KK   ..000#+W-EJ
 CMMS__<=K#  	>;? 	>$  	LLNNNNr   )__doc__
__future__r   r   r   anaconda_project.projectr   anaconda_project.frontendr   +anaconda_project.internal.cli.console_utilsinternalclir/   r   r@    r   r   <module>rI      s    4 3 6 6 6 6 6 6 6 6 



 , , , , , , . . . . . . C C C C C C C C C C C C    (   (         r   