CasperSecurity

Current Path : /lib/python3/dist-packages/uaclient/cli/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/uaclient/cli/__pycache__/api.cpython-310.pyc

o

�K�i�	�@s�ddlZddlZddlmZddlmZmZddlmZm	Z	ddl
mZddlm
Z
ddlmZmZmZddlmZGd	d
�d
e�Zdd�Zed
e	je	jeejdeede	jdd�ede	jdd�ede	jdgdd�ede	jddd�gd�gd�ZdS)�N)�OrderedDict)�Any�Optional)�
exceptions�messages)�AbstractProgress)�call_api)�ProArgument�ProArgumentGroup�
ProCommand)�HelpCategoryc	@s.eZdZdededeedeefdd�ZdS)�CLIAPIProgress�total_steps�
done_steps�previous_step_message�current_step_messagecCs8t�}||d<||d<||d<||d<tt�|��dS)Nrrrr)r�print�json�dumps)�selfrrrr�d�r�2/usr/lib/python3/dist-packages/uaclient/cli/api.py�progressszCLIAPIProgress.progressN)�__name__�
__module__�__qualname__�intr�strrrrrrr

s����r
cKs�|jr
|jr
t���|jr|jdkrtj��stj��|_|jr$t	�}nd}t
|j|j|j||�}t|�
��|jdkr>dSdS)N�-�successr�)�options�datar�CLIAPIOptionsXORData�sys�stdin�isatty�read�
show_progressr
r�
endpoint_pathr�to_json�result)�args�cfg�kwargsrr,rrr�
action_apis
�r0�apiTr*�endpoint)�help�metavarz--show-progress�
store_true)r3�actionz--argsr"�*)r3�dest�default�nargsz--datar#�)r3r8r9)�	arguments)r3�descriptionr6�
help_category�preserve_description�argument_groups)rr%�collectionsr�typingrr�uaclientrr�uaclient.apir�uaclient.api.apir�uaclient.cli.commandsr	r
r�uaclient.cli.parserrr
r0�CLI_ROOT_API�CLI_API_DESC�OTHER�CLI_API_ENDPOINT�CLI_API_SHOW_PROGRESS�CLI_API_ARGS�CLI_API_DATA�api_commandrrrr�<module>s\�������
�
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY