File: //lib/python3/dist-packages/awscli/customizations/__pycache__/generatecliskeleton.cpython-310.pyc
o
.&�a� � @ 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)�cli� r �K/usr/lib/python3/dist-packages/awscli/customizations/generatecliskeleton.py�register_generate_cli_skeleton s r
c K s$ d|vrt | |�}|�|� d S d S )N�outfile)�GenerateCliSkeletonArgument�add_to_arg_table)�session�operation_model�argument_table�kwargs�generate_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)�name� help_text�nargs�const�choicesc s t t| ��|� || _d S )N)�superr �__init__�_operation_model)�selfr r �� __class__r r r <