Hacked By AnonymousFox
�
�tg� � � � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl
mZ d� Zd� Z
edk r� ej � � Ze� d d
d�� � Ze� d
d�� � Ze� dd�� � Ze� dddd�� � e� � � Zej d
k r
e
e� � dS ej dk r
ee� � dS e� � � ej d� � dS dS )zl
Set of useful command line options to quickly get
information about available flags, their status and path
� N)�list_flags_info)�DEFAULT_FLAGS_STORAGE_PATH�DEFAULT_META_STORAGE_PATH)�PrettyTablec �� � t � � }g }|D ]0}|� |j |j |j |j d�� � �1| j r%t t
j |d�� � � � dS |st d� � dS t d� |d D � � dt j � � j d z
d
�� � }|�
d� |D � � � � t |� � dS )
aM
Lists information about all available flags on server.
Supports both human-readable and json formats.
E.g.
+--------------------------------------------------------------------+
| Name | Description | Path | Enabled |
+------------+----------------------+----------------------+---------+
| first-test | My first and super | /var/cloudlinux/flag | False |
| | cool flag that I can | s/enabled- | |
| | use everywhere | flags.d/first- | |
| | | test.flag | |
| super-test | My second and super | /var/cloudlinux/flag | False |
| | cool flag that I can | s/enabled- | |
| | use everywhere. Used | flags.d/super- | |
| | in AccelerateWP and | test.flag | |
| | Immunify teams. | | |
+------------+----------------------+----------------------+---------+
)�name�description�path�enabled� )�indentNz!No flags available on this serverc �6 � g | ]}|� � � ��S � )�
capitalize)�.0�is ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.16-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/cli.py�
<listcomp>zlist_flags.<locals>.<listcomp>B s � �0�0�0��Q�\�\�^�^�0�0�0� r �l�
�<