관리-도구
편집 파일: clcpapi.cpython-311.pyc
� \�Dg� � �� � d Z ddlZddlmZ ddlmZmZ ddlmZ d� Z dd�Z d � Zed k r2ddl Z e� � \ ZZer ee� � er e j e� � dS dS dS )z5 CloudLinux control panel API command line interface � N)�cpapi)�prepare_data_json�prepare_attention_json)�cpapiexceptionsc �6 � t j d�� � } | � ddddd�� � | � d � � � }|� d� � }|� dd �� � |� d� � }|� dd�� � |� d� � }|� ddd�� � |� dddd�� � |� dd�� � }|� dt dd�� � | S )Nz>%(prog)s - CloudLinux control panel API command line interface)�descriptionz-jz--json� store_trueFzOutput in json format)�action�default�help�command)�dest�docroot�domainzReturn document root for domain)r �userdomainsz<Return domain and document root pairs for control panel user�dblogin_cplogin_pairsz --cplogin_lst�*z$Return mapping for this system users)�nargsr z--with_system_userszShow system users in output�reseller-userszShow reseller users�resellername�?z Reseller name)�typer r )�argparse�ArgumentParser�add_argument�add_subparsers� add_parser�str)�parser� subparsers�docroot_parser�userdomains_parser�dblogin_cplogin_pairs_parser�reseller_userss �v/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/cpapi/clcpapi.py�cpapi_parserr&