o
    Vh)	                     @  sx   d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm	Z	 er2d dl
mZ d dlmZ G d	d
 d
e	ZdS )    )annotations)TYPE_CHECKING)ClassVar)argument)option)Command)Argument)Optionc                   @  sP   e Zd ZU dZdZedddddgZded< ed	d
dgZ	ded< dddZ
dS )EnvRemoveCommandz
env removez8Remove virtual environments associated with the project.pythonzeThe python executables associated with, or names of the virtual environments which are to be removed.T)optionalmultiplezClassVar[list[Argument]]	argumentsallzDRemove all managed virtual environments associated with the project.)descriptionzClassVar[list[Option]]optionsreturnintc                 C  s   ddl m} | jjd}| d}| d}|s"|s"|s"| d || j}|D ]}||}| d|j	 d q)|s?|ro|
 D ]}|rP|j	| jjjr`||j	 | d|j	 d qC|ro|j ro|j|j dS )	Nr   )
EnvManagerzvirtualenvs.in-projectr   r   zNo virtualenv provided.zDeleted virtualenv: <comment>z
</comment>)poetry.utils.envr   poetryconfiggetr   r   lineremovepathlistis_relative_topyproject_pathparentremove_venv	envs_fileexistsremove_sectionbase_env_name)selfr   is_in_projectpythonsremove_all_envsmanagerr   venv r+   v/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/console/commands/env/remove.pyhandle'   s*   





zEnvRemoveCommand.handleN)r   r   )__name__
__module____qualname__namer   r   r   __annotations__r   r   r-   r+   r+   r+   r,   r
      s    
 
	r
   N)
__future__r   typingr   r   cleo.helpersr   r   poetry.console.commands.commandr   cleo.io.inputs.argumentr   cleo.io.inputs.optionr	   r
   r+   r+   r+   r,   <module>   s    