0x1949 Team - FAZEMRX - MANAGER
Edit File: autocompletion.cpython-310.pyc
o ��g � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZm Z m Z ddlmZ ddl mZmZ ddlmZ dd d �Zde e ded ee de e fdd�Zdededee fdd�ZdS )zBLogic that powers autocompletion installed by ``pip completion``. � N)�chain)�Any�Iterable�List�Optional)�create_main_parser)� commands_dict�create_command)�get_default_environment�returnc s� dt jvrdS t jd �� dd� �tt jd �} z�| d � W n ty, d� Y nw t� }tt�}g }d}�D ] }||v rD|} nq:|du�r|dkrSt� d� � � d� o\|d v }|r�t� }� �� ���fd d�|j dd �D �}|r�|D ]} t| � qxt� d� � � d� o�|dk} | r�t� d�D ]}t|� q�t� d� t|�}|jjD ]} | jtjkr�| j| j D ] }|�|| jf� q�q�dd� �d| d � D ���fdd�|D �}� fdd�|D �}t�| |jj�}|r�t� |�}dd� |D �}|D ]}|d }|d �r|d dd� dk�r|d7 }t|� q�nMdd� |jD �}|�|j� t�|�}� � d��rI|D ]} | jtjk�rF|| j| j 7 }�q5nt�| |�}|�rYtt� |��}td�� fdd�|D ��� t� d� dS )z:Entry Point for completion of main and subcommand options.�PIP_AUTO_COMPLETEN� COMP_WORDS� � COMP_CWORD� �help�-)�show� uninstallc s0 g | ]}|j ���r|j � d d� vr|j �qS )r N)�canonical_name� startswith)�.0�dist)�cwords�lc� �B/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py� <listcomp>2 s ��z autocomplete.<locals>.<listcomp>T)� local_only�install�pathc S s g | ] }|� d �d �qS )�=r )�split�r �xr r r r N � c s g | ]\}}|� vr||f�qS r r )r r$ �v)� prev_optsr r r O s c s"