ok

Mini Shell

Direktori : /opt/imunify360/venv/lib64/python3.11/site-packages/jsonschema/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/jsonschema/__pycache__/cli.cpython-311.pyc

�

4�Dg	����dZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZd�Zd�Z
ejd	�
��Ze�ddd
de
d���e�dddd���e�dded���e�dde���e�dde
���d �Zejd!d�fd"�Zejejfd#�ZdS)$z"
The ``jsonschema`` command line.
�)�absolute_importN)�__version__��namedAny)�
validator_forc�2�d|vrd|z}t|��S)N�.zjsonschema.r)�names �n/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/jsonschema/cli.py�_namedAnyWithDefaultrs!��
�$����t�#���D�>�>��c�|�t|��5}tj|��cddd��S#1swxYwYdS)N)�open�json�load)�path�files  r�
_json_filersz��	
�d����t��y������������������������s�1�5�5zJSON Schema Validation CLI)�descriptionz-iz
--instance�append�	instancesz\a path to a JSON instance (i.e. filename.json) to validate (may be specified multiple times))�action�dest�type�helpz-Fz--error-formatz"{error.instance}: {error.message}
z�the format to use for each error output message, specified in a form suitable for passing to str.format, which will be called with 'error' for each error)�defaultrz-Vz--validatorz�the fully qualified object name of a validator to use, or, for validators that are registered with jsonschema, simply the name of the class.)rrz	--version�version)rr�schemaz3the JSON Schema to validate with (i.e. schema.json))rrc��tt�|pdg�����}|d�t|d��|d<|S)Nz--help��args�	validatorr)�vars�parser�
parse_argsr)r!�	argumentss  rr%r%DsO���V�&�&�D�,>�X�J�&�?�?�@�@�I����%�!.�y��/B�!C�!C�	�+���r
�c�f�tjtt|��������dS)Nr )r&)�sys�exit�runr%r s r�mainr,Ks.���H�S�:�4�0�0�0�
1�
1�
1�2�2�2�2�2r
c� �|d}|d|d���}|�|d��d}|dpdD]E}|�|��D]-}|�|�|�����d	}�.�F|S)
N�error_formatr"r)rFr�)�errorT)�check_schema�iter_errors�write�format)r&�stdout�stderrr.r"�errored�instancer0s        rr+r+Os����^�,�L�&�	�+�&�i��.A�B�B�B�I�
���9�X�.�/�/�/��G��k�*�0�b�����*�*�8�4�4�	�	�E��L�L��,�,�5�,�9�9�:�:�:��G�G�	��Nr
)�__doc__�
__future__r�argparserr)�
jsonschemar�jsonschema._reflectr�jsonschema.validatorsrrr�ArgumentParserr$�add_argumentr%�argvr,r5r6r+r/r
r�<module>rBs�����'�&�&�&�&�&���������
�
�
�
�"�"�"�"�"�"�(�(�(�(�(�(�/�/�/�/�/�/�������

!��	 �,�
�
�
������,��	�	�	8�
�	�	�	�����
�1�	&�	��������-�	�	�	��������������
����	>�	���������h�q�r�r�l�3�3�3�3��*�S�Z������r

Zerion Mini Shell 1.0