o
    wi\                     @   s   d dl Z d dlmZ d dlmZ d dlmZ d dlZddlm	Z	m
Z
 ddlmZ dd	lmZ ejd
ddejddddddeddfddZdS )    N)List)Path)import_module   )config__version__   )pretty_info)binary_platformversion1Display Prisma Client Python version information.)Z
short_helpz--jsonoutput_jsonTz*Output version information in JSON format.)Zis_flaghelpreturnc              	   C   s   ddd}g }|  D ]\}}zt| W n	 ty   Y qw || qtjtt tj|t	t
t jjjt	tjd}| rSttjdd |  D dd d	S tt| d	S )
r   ZnoxZmkdocs)devdocs)Zprismazprisma client pythonplatformzexpected engine versionzinstalled extraszinstall pathzbinary cache dirc                 S   s   i | ]\}}| d d|qS ) -)replace).0kv r   R/home/app/Keep/.python/lib/python3.10/site-packages/prisma/cli/commands/version.py
<dictcomp>.   s    zcli.<locals>.<dictcomp>r   )indentN)itemsr   ImportErrorappendr   Zprisma_versionr   r
   Zexpected_engine_versionstrr   __file__resolveparentZbinary_cache_dirclickZechojsondumpsr	   )r   extras	installedextramoduleinfor   r   r   cli   s,   

&r,   )r%   typingr   pathlibr   	importlibr   r$    r   r   utilsr	   Zbinaries.platformr
   commandoptionboolr,   r   r   r   r   <module>   s     