o
    VÌh:  ã                   @  sT   d dl mZ d dlmZ d dlmZ er d dlmZ d dlm	Z	 G dd„ deƒZ
dS )	é    )Úannotations)ÚTYPE_CHECKING)ÚConsoleEvent)ÚCommand)ÚIOc                      sN   e Zd ZU dZdZded< d‡ fdd„Zddd„Zddd„Zddd„Z	‡  Z
S )ÚConsoleCommandEventz‰
    An event triggered before the command is executed.

    It allows to do things like skipping the command or changing the input.
    éq   ÚintÚRETURN_CODE_DISABLEDÚcommandr   Úior   ÚreturnÚNonec                   s   t ƒ  ||¡ d| _d S ©NT)ÚsuperÚ__init__Ú_command_should_run)Úselfr   r   ©Ú	__class__© úu/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/cleo/events/console_command_event.pyr      s   
zConsoleCommandEvent.__init__c                 C  ó
   d| _ d S )NF©r   ©r   r   r   r   Údisable_command   ó   
z#ConsoleCommandEvent.disable_commandc                 C  r   r   r   r   r   r   r   Úenable_command   r   z"ConsoleCommandEvent.enable_commandÚboolc                 C  s   | j S )Nr   r   r   r   r   Úcommand_should_run!   s   z&ConsoleCommandEvent.command_should_run)r   r   r   r   r   r   )r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Ú__annotations__r   r   r   r   Ú__classcell__r   r   r   r   r      s   
 

r   N)Ú
__future__r   Útypingr   Úcleo.events.console_eventr   Úcleo.commands.commandr   Ú
cleo.io.ior   r   r   r   r   r   Ú<module>   s    