관리-도구
편집 파일: clcpapi.cpython-311.opt-1.pyc
� P�Cg� � �� � 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 ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.17-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/cpapi/clcpapi.py�cpapi_parserr&