관리-도구
편집 파일: alias.cpython-312.pyc
� t��eO � �F � d dl mZ d dlmZmZmZ d� Z G d� de� Zd� Zy)� )�DistutilsOptionError)�edit_config�option_base�config_filec �t � dD ] }|| v s�t | � c S | j � | gk7 rt | � S | S )z4Quote an argument for later parsing by shlex.split())�"�'�\�#)�repr�split)�arg�cs ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/alias.py�shquoter sC � � � ����8���9��� �y�y�{�s�e���C�y���J� c �j � e Zd ZdZdZdZdgej z Zej dgz Zd� Z d� Z d� Zy ) �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 | _ y )N)r �initialize_options�argsr ��selfs r r zalias.initialize_options s � ��&�&�t�,��� ���r c � � t j | � | j r$t | j � dk7 rt d� �y y )N� zFMust specify exactly one argument (the alias name) when using --remove)r �finalize_optionsr �lenr r r s r r zalias.finalize_options! s? � ��$�$�T�*��;�;�3�t�y�y�>�Q�.�&�!�� � /�;r c �8 � | j j d� }| j s4t d� t d� |D ] }t dt ||� � � y t | j � dk( rG| j \ }| j rd }ne||v rt dt ||� � y t d|z � y | j d }dj t t | j dd � � }t | j d||ii| j � y ) 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�y��#�$��#�$� � F���&��U�G�(D�E� F�� ����^�q� ��y�y�H�U��{�{����'�!��&��U�G�(D�E���8�5�@�A���I�I�a�L�E��h�h�s�7�D�I�I�a�b�M�:�;�G��D�M�M�I��w�/?�#@�$�,�,�Or N)�__name__� __module__�__qualname__�__doc__�description�command_consumes_argumentsr �user_options�boolean_optionsr r r, � r r r r sN � �=�D�K�!%�� 4��� � �!�L� "�1�1�X�J�>�O�� �Pr r c � � || \ }}|t d� k( rd}n'|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"