관리-도구
편집 파일: autocompletion.cpython-311.pyc
� �Dg� � �� � d Z ddlZddlZddlZddlmZ ddlmZmZm Z m Z ddlmZ ddl mZmZ ddlmZ dd �Zd e e dedee de e fd �Zdededee fd�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 � ������ dt j vrdS t j � d� � rt j � d� � sdS t j d � � � dd� �t t j d � � } �| dz �n# t $ r d�Y nw xY wt � � }t t � � }g }d}�D ] }||v r|} n�|���|dk rt j d� � �� d� � o|d v }|rot � � }�� � � ���fd �|� d�� � D � � }|r(|D ]} t | � � �t j d� � �� d� � o|d k } | r6t! �d� � D ]}t |� � �t j d� � t# |� � }|j j D ]5��j t* j k r|�fd��j �j z D � � z }�6d� �d| dz � D � � ��fd�|D � � }�fd�|D � � }t3 �| |j j � � } | rt! �| � � }d� |D � � }|D ]:}|d }|d r|d dd� dk r|dz }t |� � �;n�d� |j D � � }|� |j � � t; j |� � }�� d� � r-|D ])��j t* j k r|�j �j z z }�*n0t3 �| |� � } | rt t! �| � � � � }t d� �fd�|D � � � � � � t j d� � dS )z:Entry Point for completion of main and subcommand options.�PIP_AUTO_COMPLETEN� COMP_WORDS� COMP_CWORD� � �help�-)�show� uninstallc �t �� g | ]4}|j � �� � r|j �d d� v�-|j ��5S )r N)�canonical_name� startswith)�.0�dist�cwords�lcs ����/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/autocompletion.py� <listcomp>z autocomplete.<locals>.<listcomp>6 sY �� � � � ���&�1�1�"�5�5�� �'�v�a�b�b�z�9�9� �#� :�9�9� T)� local_only�install�pathc �"