
    ,i\                         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       ej                   dddd      deddfd              Zy)    N)List)Path)import_module   )config__version__   )pretty_info)binary_platformversion1Display Prisma Client Python version information.)
short_helpz--jsonoutput_jsonTz*Output version information in JSON format.)is_flaghelpreturnc                    ddd}g }|j                         D ]"  \  }}	 t        |       |j                  |       $ t        j
                  t        t               t        j                  |t        t        t              j                         j                  j                  j                        t        t        j                        d}| r]t        j                   t#        j$                  |j                         D ci c]  \  }}|j'                  dd      | c}}d             y	t        j                   t)        |             y	# t        $ r Y :w xY wc c}}w )
r   noxmkdocs)devdocs)prismazprisma client pythonplatformzexpected engine versionzinstalled extraszinstall pathzbinary cache dir -r	   )indentN)itemsr   appendImportErrorr   prisma_versionr   r   expected_engine_versionstrr   __file__resolveparentbinary_cache_dirclickechojsondumpsreplacer
   )r   extras	installedextramoduleinfokvs           `/var/www/html/langgraph-service/venv/lib/python3.12/site-packages/prisma/cli/commands/version.pyclir4      s    F I $v	$&! U#$ '' +#%#)#A#A%DN224;;BBIIJ 7 78D 

4::$**,O$!Qqyyc2A5OXYZ[

;t$%%  		  Ps   E;E	EE)r)   typingr   pathlibr   	importlibr   r'    r   r   utilsr
   binaries.platformr   commandoptionboolr4        r3   <module>r@      sm       #  #  0 y%XY	5	&T &d & Z&r?   