File: //lib/python3.6/site-packages/awscli/customizations/__pycache__/cliinputjson.cpython-36.pyc
3
�T_+ � @ sT d dl Z d dlmZmZ d dlmZ d dlmZ dd� Zdd� Z G d d
� d
e�Z
dS )� N)�
get_paramfile�LOCAL_PREFIX_MAP)�
ParamError)�OverrideRequiredArgsArgumentc C s | j dt� d S )Nzbuilding-argument-table)�register�add_cli_input_json)Zcli� r �"/usr/lib/python3.6/cliinputjson.py�register_cli_input_json s r
c K s d|krt | �}|j|� d S )NZoutfile)�CliInputJSONArgumentZadd_to_arg_table)�sessionZargument_table�kwargsZcli_input_json_argumentr r r r s r c sF e Zd ZdZddd�Z� fdd�Z� fdd�Zd d
� Zdd� Z� Z S )
r a# This argument inputs a JSON string as the entire input for a command.
Ideally, the value to this argument should be a filled out JSON file
generated by ``--generate-cli-skeleton``. The items in the JSON string
will not clobber other arguments entered into the command line.
zcli-input-jsonak Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.)�nameZ help_textc s t t| �j|� d S )N)�superr �__init__)�selfr )� __class__r r r 2 s zCliInputJSONArgument.__init__c s"