HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/uaclient/cli/__pycache__/api.cpython-310.pyc
o

��g�	�@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\�������
�