Mini Shell

Direktori : /opt/cppython/bin/__pycache__/
Upload File :
Current File : //opt/cppython/bin/__pycache__/jp.cpython-38.pyc

U

��eg��@sXddlZddlZddlZddlmZddlZddlmZdd�ZedkrTe�	e��dS)�N)�pformat)�
exceptionsc
Cs�t��}|�d�|jdddd�|jdddd	�|��}|j}|jrtt�|j�}tj	�
t|j��tj	�
d
�dS|j
r�t|j
d��}t�|�}W5QRXntj��}t�|�}z0tj	�
tjt�||�d
dd��tj	�
d
�Wn�tjk
�r}ztj�
d|�WY�dSd}~XYn�tjk
�rX}ztj�
d|�WY�dSd}~XYnvtjk
�r�}ztj�
d|�WY�dSd}~XYn<tjk
�r�}ztj�
d|�WY�dSd}~XYnXdS)N�
expressionz-fz
--filenamezaThe filename containing the input data.  If a filename is not given then data is read from stdin.)�helpz--ast�
store_truez-Pretty print the AST, do not search the data.)�actionr�
r�r�F)�indent�ensure_asciizinvalid-arity: %s
�zinvalid-type: %s
zunknown-function: %s
zsyntax-error: %s
)�argparse�ArgumentParser�add_argument�
parse_argsr�ast�jmespath�compile�sys�stdout�writer�parsed�filename�open�json�load�stdin�read�loads�dumps�searchrZ
ArityError�stderrZJMESPathTypeErrorZUnknownFunctionErrorZ
ParseError)�parser�argsr�f�data�e�r(�</opt/cppython/lib/python3.8/site-packages/../../../bin/jp.py�mainsN
��



�r*�__main__)
rrr�pprintrrrr*�__name__�exitr(r(r(r)�<module>s)

Zerion Mini Shell 1.0