File: //lib/python3/dist-packages/awscli/customizations/__pycache__/generatecliskeleton.cpython-38.pyc
U
<�^� � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
dd � Zd
d� ZG dd
� d
e�ZG dd� de �ZdS )� N)�
xform_name)�Stubber)�ArgumentGenerator)�CLIOperationCaller)�OverrideRequiredArgsArgument)�json_encoderc C s | � dt� d S )Nzbuilding-argument-table)�register�add_generate_skeleton)Zcli� r
�K/usr/lib/python3/dist-packages/awscli/customizations/generatecliskeleton.py�register_generate_cli_skeleton s r c K s d|krt | |�}|�|� d S )NZoutfile)�GenerateCliSkeletonArgumentZadd_to_arg_table)�session�operation_model�argument_table�kwargsZgenerate_cli_skeleton_argumentr
r
r r s �r c sT e Zd ZdZddddddgd�Z� fdd �Z� fd
d�Z� fdd
�Zdd� Z� Z S )r
z�This argument writes a generated JSON skeleton to stdout
The argument, if present in the command line, will prevent the intended
command from taking place. Instead, it will generate a JSON skeleton and
print it to standard output.
zgenerate-cli-skeletonaJ Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command.�?�input�output)�nameZ help_text�nargsZconst�choicesc s t t| ��|� || _d S )N)�superr
�__init__�_operation_model)�selfr r �� __class__r
r r <