Файловый менеджер - Редактировать - /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/cli_versions/__pycache__/user_api.cpython-311.pyc
Назад
� b\eh � �� � d dl mZ d dlZd dlZd dlmZ d dlmZ d dl m Z mZ d dlm Z d dlmZmZ ee� � Z e j d� � e j � � G d � d e � � � � � � ZdS )� )�absolute_importN)�deepcopy)�gettext)�CloudlinuxWposUser�parser)�user_cli_version_registry)�ALL_OPTIMIZATION_FEATURES�Feature�1c �� � e Zd ZdZd� Ze� d ed� � ede j v �� � e� d ed� � ed�� � e� ed � � � � � d� � � � � � � Ze� ed� � � � � d � � � Z e� d ed� � edd� eD � � �� � e� d ed� � ed�� � e� d ed� � ed�� � e� ed� � � � � d� � � � � � � � � Ze� d ed� � d�� � e� d ed� � d�� � e� d ed� � ed�� � e� d ed� � ed�� � e� d ed� � edd� eD � � �� � e� dej dd� � � e� ed!� � � � � d"� � � � � � � � � � � � � � � Ze� d#g ed$� � ddd �fd%g ed&� � ddd �fgd�'� � e� d( ed)� � dde j vode j v�*� � e� d ed+� � edd(e j v�,� � e� d ed-� � ed(e j v�� � e� ed.� � � � � d/� � � � � � � � � � � Zd0S )1�CloudlinuxWposUserV1a: We announced those commands in public doc as api-version=1, it means that we make any changes to CLI cautiously: - if you are making change which could break backward compatibility (e.g - rename parameter) -> you should create new class e.g CloudlinuxWposAdminV2 and override needed methods c �6 � t � |� � S �N)�versioned_parser� parse_args)�self�argvs �S/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwpos/cli_versions/user_api.py�_parse_argsz CloudlinuxWposUserV1._parse_args$ s � ��*�*�4�0�0�0� z--domainzUser's wordpress domainz --wp-path)�help�type�requiredzPath to user's wordpressFz�Shows info about all Accelerate optimization features for WordPress sites, use '--domain' option to get info for a single domain and '--wp-path' option to get info for a single website)r c �* � | � � � S r )�_get�r s r �getzCloudlinuxWposUserV1.get'