HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/cli_utils.cpython-311.opt-1.pyc
�

3PO�M�G��8�dZddlZdZdedefd�Zdded	efd
�ZdS)z�
This module serves as a collection of functions needed by various
cloudlinux-* utilities. It should not include any functions specific to a one
single utility as to not pollute it with unnecessary imports.
�NzAvailable values for option�data�returnc��|�d��r#|�dd��\}}d|zd|id�S|�t��r5|�dd��\}}|dzd	|���id�Sd
|iS)z�
    Replacing params in a data string to display an error message for humans.

    :param data: error's data for show message
    :return: a dictionary suitable for UI
    z--� �z%%(param)s �param)�result�context�:z: %%(available_options)s�available_optionsr	)�
startswith�split�
VALUES_STR�strip)rr�texts   �py/cli_utils.py�replace_paramsrs������t���M��j�j��a�(�(���t�'�$�.�G�U�;K�L�L�L����z�"�"�A��j�j��a�(�(���e��!;�;�/������?�A�A�	A��d���F�is_json�	is_prettyc���|rM|r&ttj|dd�����dSttj|d�����dSt|��dS)z�
    Print specified dictionary
    :param data_dict: data dictionary to print
    :param is_json: True - print in JSON, False - in text
    :param is_pretty: True - pretty json print, False - none (default)
    :return: None
    �T)�indent�	sort_keys)rN)�print�json�dumps)�	data_dictrrs   r�print_dictionaryr'sr�����	9��$�*�Y�q�D�A�A�A�B�B�B�B�B��$�*�Y�$�7�7�7�8�8�8�8�8�	�i�����r)FF)�__doc__rr�str�dictr�boolr�rr�<module>r%st��������+�
���������"����$������r