관리-도구
편집 파일: cli.cpython-311.pyc
� IMgO � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZdddd�ZdZ dZ dZd d gZd\ Z ZZeded iZe d ee eeiZd� Z G d� d� � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zi de�de�de�d e�d!e�d"e�d#e�d$e�d%e�d&e�d'e�d(e�d)e�d*e�d+e�d,e�d-e�eed.��Z d5d0�Z!d1e"fd2�Z# d5ej$ d3�d4�Z%dS )6� )�defaultdictNT� )�,�: )� sort_keys�indent� separators� � z /bin/lessz /bin/more)�success�warnings�error�WARNING�ERRORc � � t j � dt d� t D � � d � � � � }|�t | � � d S t j |g| � � � t j �� � d S )N�PAGERc 3 �X K � | ]%}t j � |� � �!|V � �&d S �N)�os�path�isfile)�.0�ps �N/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/utils/cli.py� <genexpr>zpager.<locals>.<genexpr> s5 � � � �>�>�Q�B�G�N�N�1�,=�,=�>�q�>�>�>�>�>�>� )�input�stdout)r �environ�get�next�PAGERS�print� subprocess�run�encode�sysr )�data�pagers r r) r) st � ��J�N�N���>�>�&�>�>�>��E�E� � �E� �}� �d���������w�d�k�k�m�m�C�J�G�G�G�G�G�Gr c �d � e Zd Zd� Z dd�Zej fd�Zed� � � Z ed� � � Z dS ) �TablePrinterc �b � i | _ t t � � | _ i | _ i | _ d S r )�_headersr �list�_mappers�_right_aligned�_widths)�selfs r �__init__zTablePrinter.__init__'