AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/jsonschema/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/jsonschema/__pycache__/cli.cpython-311.pyc |
� �܋f � �� � d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZ d� Zd� Z ej d � � � Ze� ddd de d�� � e� dddd�� � e� dded�� � e� dde�� � e� dde �� � d � Zej d!d� fd"�Zej ej fd#�ZdS )$z" The ``jsonschema`` command line. � )�absolute_importN)�__version__��namedAny)� validator_forc �2 � d| vrd| z } t | � � S )N�.zjsonschema.r )�names �_/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/jsonschema/cli.py�_namedAnyWithDefaultr s! � � �$����t�#���D�>�>�� c �| � t | � � 5 }t j |� � cd d d � � S # 1 swxY w Y d S )N)�open�json�load)�path�files r � _json_filer sz � � �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)�defaultr z-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.)r r z --version�version)r r �schemaz3the JSON Schema to validate with (i.e. schema.json))r r c � � t t � | pdg�� � � � }|d �t |d � � |d<