관리-도구
편집 파일: alias.cpython-311.pyc
� N�DgO � �N � d dl mZ d dlmZmZmZ d� Z G d� de� � Zd� ZdS )� )�DistutilsOptionError)�edit_config�option_base�config_filec � � dD ]}|| v rt | � � c S �| � � � | gk rt | � � S | S )z4Quote an argument for later parsing by shlex.split())�"�'�\�#)�repr�split)�arg�cs �x/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/alias.py�shquoter sW � � � � ����8�8���9�9���� � �y�y�{�{�s�e����C�y�y���J� c �X � e Zd ZdZdZdZdgej z Zej dgz Zd� Z d� Z d� Zd S ) �aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)�remove�rzremove (unset) the aliasr c �J � t j | � � d | _ d | _ d S )N)r �initialize_options�argsr ��selfs r r zalias.initialize_options s% � ��&�t�,�,�,��� �����r c � � t j | � � | j r't | j � � dk rt d� � �d S d S )N� zFMust specify exactly one argument (the alias name) when using --remove)r �finalize_optionsr �lenr r r s r r zalias.finalize_options! sV � ��$�T�*�*�*��;� �3�t�y�>�>�Q�.�.�&�!�� � � � �.�.r c �V � | j � d� � }| j sCt d� � t d� � |D ] }t dt ||� � � � �!d S t | j � � dk rK| j \ }| j rd }nz||v r t dt ||� � � � d S t d|z � � d S | j d }d� t t | j dd � � � � � }t | j d||ii| j � � d S ) N�aliaseszCommand Aliasesz---------------zsetup.py aliasr z No alias definition found for %rr � ) �distribution�get_option_dictr �print�format_aliasr r �join�mapr r �filename�dry_run)r r! r �commands r �runz alias.run) s; � ��#�3�3�I�>�>���y� <��#�$�$�$��#�$�$�$� � F� F���&��U�G�(D�(D�E�E�E�E��F� ���^�^�q� � ��y�H�U��{� �����'�!�!��&��U�G�(D�(D�E�E�E����8�5�@�A�A�A����I�a�L�E��h�h�s�7�D�I�a�b�b�M�:�:�;�;�G��D�M�I��w�/?�#@�$�,�O�O�O�O�Or N)�__name__� __module__�__qualname__�__doc__�description�command_consumes_argumentsr �user_options�boolean_optionsr r r, � r r r r s � � � � � �=�=�D�K�!%�� 4��� �!�L� "�1�X�J�>�O�� � � � � �P� P� P� P� Pr r c � � || \ }}|t d� � k rd}n1|t d� � k rd}n|t d� � k rd}nd|z }|| z dz |z S ) N�globalz--global-config �userz--user-config �local� z --filename=%rr"