o
    ›¨ÊhÐ  ã                
   @   st   d Z ddlZddlmZmZmZ ejed�e d¡ejddedd	d
�ejdedddd�ej	edd„ ƒƒƒƒƒƒZ
dS )z<The ``celery result`` program, used to inspect task results.é    N)ÚCeleryCommandÚCeleryOptionÚhandle_preload_options)ÚclsÚtask_idz-tz--taskzResult Optionsz!Name of task (if custom backend).)r   Ú
help_groupÚhelpz--tracebackTzShow traceback instead.)r   Úis_flagr   r   c                 C   sH   | j j}|r|j| jn|j}||ƒ}|r|jn| ¡ }| j  |¡ dS )z+Print the return value for a given task id.N)ÚobjÚappÚtasksÚAsyncResultÚ	tracebackÚgetÚecho)Úctxr   Útaskr   r   Ú
result_clsÚtask_resultÚvalue© r   úC/var/www/html/env/lib/python3.10/site-packages/celery/bin/result.pyÚresult   s
   r   )Ú__doc__ÚclickÚcelery.bin.baser   r   r   ÚcommandÚargumentÚoptionÚpass_contextr   r   r   r   r   Ú<module>   s(    
üü