https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt/python37/lib/python3.7/site-packages/clwizard/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python37/lib/python3.7/site-packages/clwizard/__pycache__/parser.cpython-37.pyc
B

�c�
�@s<ddlmZddlZddlZddlmZdd�Zdd�ZdS)�)�absolute_importN)�get_supported_modulesc
Cs�yt�|�}Wn2ttfk
r@}zt�d�|�Wdd}~XYnXt�}x�|��D]�\}}||kr|t�d|t|�	��f��dt|�	��kr�t
|d�	���||���s�t�d|t|d�	��f��qR|rRt�d|t|�	��f��qRW|S)NzInvalid JSON data passedz>'%s' module is not supported at the moment, available keys: %sZoptionsz%'%s' module has incorrect options: %sz*'%s' module has incorrect instructions: %s)
�json�loads�	TypeError�
ValueError�argparseZArgumentTypeErrorr�items�list�keys�set�issubsetZsupported_options)Zjson_string�dataZ
json_errorZsupported_modules�nameZinstructions�r�@/opt/alt/python37/lib/python3.7/site-packages/clwizard/parser.py�validate_json_moduless*rc	Cs�tjddd�}|jddtjd�|jdd�}|jd	d
d�}|jdd
dd�|jdddd�|jdd�}|jddtd�|jdddd�|jddd�}|jddddd�|jddd�}|jdd d�}|jd!tt	��d"�|�
|�}|S)#z2
    Arg parser for cloudlinux-wizard utility
    zcloudlinux-wizardz)Utility for installing cloudlinux modules)�prog�descriptionz--json�
store_true)�action�help�	subparser)�destZinstallzLInstall a module. The installation is performed in the background by default)rz
--no-asynczInstall in the foreground)rrz--forcez4Force the installer to ignore existing installationsT)Zrequiredz--json-dataz!JSON with modules to be installed)r�typez--resumez@Restart the installation process with previously given argumentsZstatusz(Return JSON with statuses of all modulesz	--initialz-izGet the current modules' statusZfinishz6Finalize the installation from UI and close the wizardZcancelz+Remove a module from the installation queue�module)�choices)r�ArgumentParser�add_argumentZSUPPRESSZadd_subparsersZ
add_parserZadd_mutually_exclusive_grouprr
r�
parse_args)	�argv�parserrZinstall_parserZinstaller_groupZ
status_parserZ
finish_parserZ
cancel_parserZoptsrrr�parse_cloudlinux_wizard_opts/sD



r")Z
__future__rrrZclwizard.modulesrrr"rrrr�<module>	s


https://t.me/AnonymousX5 - 2025