File: //usr/lib/python3/dist-packages/click/__pycache__/core.cpython-310.pyc
o
�+cav� � @ sp d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dlm
Z
d dlmZ d dlm
Z
d dlmZ d dlmZ d d lmZ d
dlmZ d
dlmZ d
d
lmZ d
dlmZ d
dlmZ d
dlmZ d
dlmZ d
dlmZ d
dlmZ d
dlm Z d
dl!m"Z" d
dl!m#Z# d
dl$m%Z% d
dl$m&Z& d
dl$m'Z' d
dl(m)Z) d
dl(m*Z* d
dl(m+Z+ d
dl,m-Z- d
dl,m.Z. d
dl,m/Z/ d
d l,m0Z0 d
d!l,m1Z1 d
d"l,m2Z2 ej3r�d dl4Z5d
d#l6m7Z7 ej8d$ej9d%ej:f d&�Z;e�8d'�Z<d(d)d*e=d+ej>ej?e=d,f fd-d.�Z@ /dVd0d1d2e=d3d,d4eAd+df
d5d6�ZBd7ejCe< d8eDd+ejEej?e<d%f fd9d:�ZFe dWd(d)d;ejGd< d+ej>d fd=d>��ZHd?ejId< d@ejId< d+ejEd< fdAdB�ZJG dCdD� dDe jK�ZLG dEd)� d)�ZMG dFdG� dG�ZNG dHd,� d,eN�ZOG dId1� d1eO�ZPG dJdK� dKeP�ZQG dLdM� dMeP�ZRdNej:d+ej>ej: fdOdP�ZSG dQd<� d<�ZTG dRdS� dSeT�ZUG dTdU� dUeT�ZVdS )X� N)�abc)�contextmanager)� ExitStack)�partial)�update_wrapper)�gettext)�ngettext)�repeat� )�types)�_verify_python_env��Abort)�BadParameter)�ClickException��Exit)�MissingParameter��
UsageError)�
HelpFormatter)�join_options)�pop_context)�push_context��_flag_needs_value)�OptionParser)� split_opt)�confirm)�prompt)�style)�_detect_program_name)�_expand_args)�echo)�make_default_short_help)�make_str)�PacifyFlushWrapper��CompletionItem�F.)�bound�V�ctx�Context�
incomplete�return�Commandc c sR � t �t| j�}|�| �D ]}|�|�r&|�| |�}|dur&|js&||fV q
dS )z�List all the subcommands of a group that start with the
incomplete value and aren't hidden.
:param ctx: Invocation context for the group.
:param incomplete: Value being completed. May be empty.
N)�t�cast�MultiCommand�command�
list_commands�
startswith�get_command�hidden)r, r. �multi�namer4 � r; �,/usr/lib/python3/dist-packages/click/core.py�_complete_visible_commands1 s �
��r= F�base_commandr3 �cmd_name�cmd�registerc C sd | j rt|t�s
d S |rd}nd}t|� d| j�d|�d|�dt|�j� dt| �j� d| j�d ���)
NzdIt is not possible to add multi commands as children to another multi command that is in chain mode.zdFound a multi command as subcommand to a multi command that is in chain mode. This is not supported.z
. Command z is set to chain and zA was added as a subcommand but it in itself is a multi command. (z is a z within a chained z named z).)�chain�
isinstancer3 �RuntimeErrorr: �type�__name__)r>