Files
aitsc/.venv/Lib/site-packages/click/__pycache__/shell_completion.cpython-312.pyc

284 lines
22 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
JӨg<D3A8>H<00> <00><><00>UddlZddlZddlZddlmZddlmZddlmZddlm Z ddlm
Z
ddlm Z dd lm Z dd
lm Z dd lmZdd lmZd edej$eej(fdedededef d<13>ZGd<14>d<15>ZdZdZdZGd<19>d<1A>ZGd<1B>de<1B>ZGd<1D>de<1B>ZGd<1F>d e<1B>Zej>d!ej@e<00>"<22>Z!eeed#<23>Z"ejFeej@efe$d$< d4d%e!d&ejJede!fd'<27>Z&d(edejJej@efd)<29>Z'd*e d+e de(fd,<2C>Z)d*e d-ede(fd.<2E>Z*d*e d/ejVed+e de(fd0<64>Z,d edej$eej(fded/ejVede f
d1<EFBFBD>Z-d*e d/ejVed2edej\ej^ee feffd3<64>Z0y)5<>N)<01>gettext<78>)<01>Argument)<01> BaseCommand)<01>Context)<01> MultiCommand)<01>Option)<01> Parameter)<01>ParameterSource)<01>split_arg_string)<01>echo<68>cli<6C>ctx_args<67> prog_name<6D> complete_var<61> instruction<6F>returnc<00><><00>|jd<01>\}}}t|<05>}|<07>y|||||<03>}|dk(rt|j<00><00>y|dk(rt|j <00><00>yy)aPerform shell completion for the given CLI program.
:param cli: Command being called.
:param ctx_args: Extra arguments to pass to
``cli.make_context``.
:param prog_name: Name of the executable in the shell.
:param complete_var: Name of the environment variable that holds
the completion instruction.
:param instruction: Value of ``complete_var`` with the completion
instruction and shell, in the form ``instruction_shell``.
:return: Status code to exit with.
<20>_r<00>sourcer<00>complete)<05> partition<6F>get_completion_classr rr) rrrrr<00>shellr<00>comp_cls<6C>comps <20>@D:\wxxcx\tsccc\.venv\Lib\site-packages\click/shell_completion.py<70>shell_completerss<00><00>&(<28>1<>1<>#<23>6<><19>E<EFBFBD>1<EFBFBD>k<EFBFBD>#<23>E<EFBFBD>*<2A>H<EFBFBD><0F><17><10> <13>C<EFBFBD><18>9<EFBFBD>l<EFBFBD> ;<3B>D<EFBFBD><12>h<EFBFBD><1E> <0C>T<EFBFBD>[<5B>[<5B>]<5D><1B><10><12>j<EFBFBD> <20> <0C>T<EFBFBD>]<5D>]<5D>_<EFBFBD><1D><10> <0C>c <00><><00>eZdZdZdZ d dej dedejedej ddf
d <09>Z d
edej fd <0B>Z
y) <0A>CompletionItema)Represents a completion value and metadata about the value. The
default metadata is ``type`` to indicate special shell handling,
and ``help`` if a shell supports showing a help string next to the
value.
Arbitrary parameters can be passed when creating the object, and
accessed using ``item.attr``. If an attribute wasn't passed,
accessing it returns ``None``.
:param value: The completion suggestion.
:param type: Tells the shell script to provide special completion
support for the type. Click uses ``"dir"`` and ``"file"``.
:param help: String shown next to the value if supported.
:param kwargs: Arbitrary metadata. The built-in implementations
don't use this, but custom type completions paired with custom
shell support could use it.
<20><04>value<75>type<70>help<6C>_infoNr#r$r%<00>kwargsrc <00><<00>||_||_||_||_y<00>Nr")<05>selfr#r$r%r's r<00>__init__zCompletionItem.__init__Ls <00><00>"<22><04>
<EFBFBD><1D><04> <09>%)<29><04> <09><1B><04>
r<00>namec<00>8<00>|jj|<01>Sr))r&<00>get)r*r,s r<00> __getattr__zCompletionItem.__getattr__Xs<00><00><13>z<EFBFBD>z<EFBFBD>~<7E>~<7E>d<EFBFBD>#<23>#r)<02>plainN) <0B>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> __slots__<5F>t<>Any<6E>str<74>Optionalr+r/<00>rrr!r!7sr<00><00><08>$3<>I<EFBFBD>
<1C> $<24>
<1C><10>u<EFBFBD>u<EFBFBD>
<1C><12>
<1C><10>j<EFBFBD>j<EFBFBD><13>o<EFBFBD>
<1C>
<14>%<25>%<25>
<1C>
<0E>
<1C>$<24><03>$<24><01><05><05>$rr!a<>%(complete_func)s() {
local IFS=$'\n'
local response
response=$(env COMP_WORDS="${COMP_WORDS[*]}" COMP_CWORD=$COMP_CWORD %(complete_var)s=bash_complete $1)
for completion in $response; do
IFS=',' read type value <<< "$completion"
if [[ $type == 'dir' ]]; then
COMPREPLY=()
compopt -o dirnames
elif [[ $type == 'file' ]]; then
COMPREPLY=()
compopt -o default
elif [[ $type == 'plain' ]]; then
COMPREPLY+=($value)
fi
done
return 0
}
%(complete_func)s_setup() {
complete -o nosort -F %(complete_func)s %(prog_name)s
}
%(complete_func)s_setup;
a<EFBFBD>#compdef %(prog_name)s
%(complete_func)s() {
local -a completions
local -a completions_with_descriptions
local -a response
(( ! $+commands[%(prog_name)s] )) && return 1
response=("${(@f)$(env COMP_WORDS="${words[*]}" COMP_CWORD=$((CURRENT-1)) %(complete_var)s=zsh_complete %(prog_name)s)}")
for type key descr in ${response}; do
if [[ "$type" == "plain" ]]; then
if [[ "$descr" == "_" ]]; then
completions+=("$key")
else
completions_with_descriptions+=("$key":"$descr")
fi
elif [[ "$type" == "dir" ]]; then
_path_files -/
elif [[ "$type" == "file" ]]; then
_path_files -f
fi
done
if [ -n "$completions_with_descriptions" ]; then
_describe -V unsorted completions_with_descriptions -U
fi
if [ -n "$completions" ]; then
compadd -U -V unsorted -a completions
fi
}
if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
# autoload from fpath, call function directly
%(complete_func)s "$@"
else
# eval/source/. command, register function for later
compdef %(complete_func)s %(prog_name)s
fi
affunction %(complete_func)s;
set -l response (env %(complete_var)s=fish_complete COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) %(prog_name)s);
for completion in $response;
set -l metadata (string split "," $completion);
if test $metadata[1] = "dir";
__fish_complete_directories $metadata[2];
else if test $metadata[1] = "file";
__fish_complete_path $metadata[2];
else if test $metadata[1] = "plain";
echo $metadata[2];
end;
end;
end;
complete --no-files --command %(prog_name)s --arguments "(%(complete_func)s)";
c
<00><><00>eZdZUdZej
eed< ej
eed< dedejeejfdededd f
d
<EFBFBD>Z e defd <0B><04>Z dejeejffd <0C>Zdefd <0A>Zdej"ej$eeffd<0E>Zdej$ededej$efd<11>Zdedefd<13>Zdefd<14>Zy )<15> ShellCompletea<65>Base class for providing shell completion support. A subclass for
a given shell will override attributes and methods to implement the
completion instructions (``source`` and ``complete``).
:param cli: Command being called.
:param prog_name: Name of the executable in the shell.
:param complete_var: Name of the environment variable that holds
the completion instruction.
.. versionadded:: 8.0
r,<00>source_templaterrrrrNc<00><<00>||_||_||_||_yr))rrrr)r*rrrrs rr+zShellComplete.__init__<5F>s!<00><00><17><04><08> <20><04> <0A>"<22><04><0E>(<28><04>rc<00><><00>tjdd|jjdd<04>tj<00><05>}d|<01>d<06>S)zQThe name of the shell function defined by the completion
script.
z\W*<2A><00>-r)<01>flags<67> _completion)<05>re<72>subr<00>replace<63>ASCII)r*<00> safe_names r<00> func_namezShellComplete.func_name<6D>s<<00><00>
<17>F<EFBFBD>F<EFBFBD>6<EFBFBD>2<EFBFBD>t<EFBFBD>~<7E>~<7E>'=<3D>'=<3D>c<EFBFBD>3<EFBFBD>'G<>r<EFBFBD>x<EFBFBD>x<EFBFBD>X<> <09><12>9<EFBFBD>+<2B>[<5B>)<29>)rc<00>J<00>|j|j|jd<01>S)z<>Vars for formatting :attr:`source_template`.
By default this provides ``complete_func``, ``complete_var``,
and ``prog_name``.
)<03> complete_funcrr)rIrr<00>r*s r<00> source_varszShellComplete.source_vars<72>s%<00><00>"<22>^<5E>^<5E> <20>-<2D>-<2D><1D><1E><1E>
<EFBFBD>
rc<00><<00>|j|j<00>zS)z<>Produce the shell script that defines the completion
function. By default this ``%``-style formats
:attr:`source_template` with the dict returned by
:meth:`source_vars`.
)r=rMrLs rrzShellComplete.source<63>s<00><00> <14>#<23>#<23>d<EFBFBD>&6<>&6<>&8<>8<>8rc<00><00>t<00>)z<>Use the env vars defined by the shell script to return a
tuple of ``args, incomplete``. This must be implemented by
subclasses.
<20><01>NotImplementedErrorrLs r<00>get_completion_argsz!ShellComplete.get_completion_argss
<00><00>
"<22>!r<00>args<67>
incompletec<00><><00>t|j|j|j|<01>}t |||<02>\}}|j ||<02>S)aTDetermine the context and last complete command or parameter
from the complete args. Call that object's ``shell_complete``
method to get the completions for the incomplete value.
:param args: List of complete args before the incomplete value.
:param incomplete: Value being completed. May be empty.
)<06>_resolve_contextrrr<00>_resolve_incompleter)r*rSrT<00>ctx<74>objs r<00>get_completionszShellComplete.get_completionssE<00><00><1F>t<EFBFBD>x<EFBFBD>x<EFBFBD><14><1D><1D><04><0E><0E><04>M<><03>-<2D>c<EFBFBD>4<EFBFBD><1A>D<><0F><03>Z<EFBFBD><12>!<21>!<21>#<23>z<EFBFBD>2<>2r<00>itemc<00><00>t<00>)z<>Format a completion item into the form recognized by the
shell script. This must be implemented by subclasses.
:param item: Completion item to format.
rP<00>r*r[s r<00>format_completionzShellComplete.format_completions
<00><00> "<22>!rc<00><><00>|j<00>\}}|j||<02>}|D<00>cgc]}|j|<04><00><02>}}dj|<05>Scc}w)z<>Produce the completion data to send back to the shell.
By default this calls :meth:`get_completion_args`, gets the
completions, then calls :meth:`format_completion` for each
completion.
<20>
)rRrZr^<00>join)r*rSrT<00> completionsr[<00>outs rrzShellComplete.completes\<00><00> <20>3<>3<>5<><18><04>j<EFBFBD><1A>*<2A>*<2A>4<EFBFBD><1A><<3C> <0B>8C<38>D<> <0B><04>t<EFBFBD>%<25>%<25>d<EFBFBD>+<2B> <0B><03>D<><13>y<EFBFBD>y<EFBFBD><13>~<7E><1D><>Es<00>A)r1r2r3r4r6<00>ClassVarr8<00>__annotations__r<00>MutableMappingr7r+<00>propertyrI<00>DictrMr<00>Tuple<6C>ListrRr!rZr^rr:rrr<r<<00>s,<00><00>
<08> <0C>*<2A>*<2A>S<EFBFBD>/<2F><19><08>
<17>Z<EFBFBD>Z<EFBFBD><03>_<EFBFBD>$<24><08>
)<29> <18>
)<29><14>"<22>"<22>3<EFBFBD><01><05><05>:<3A>.<2E>
)<29><17>
)<29>
<1A>
)<29>
<0E>
)<29><0E>*<2A>3<EFBFBD>*<2A><0E>*<2A>

<EFBFBD>Q<EFBFBD>V<EFBFBD>V<EFBFBD>C<EFBFBD><11><15><15>J<EFBFBD>/<2F>

<EFBFBD>9<><03>9<>"<22>Q<EFBFBD>W<EFBFBD>W<EFBFBD>Q<EFBFBD>V<EFBFBD>V<EFBFBD>C<EFBFBD>[<5B>#<23>-=<3D>%><3E>"<22> 3<><15>F<EFBFBD>F<EFBFBD>3<EFBFBD>K<EFBFBD> 3<>-0<> 3<>
<EFBFBD><16><16><0E> <1F> 3<>"<22>n<EFBFBD>"<22><13>"<22>
<1E>#<23>
rr<c<00><><00><00>eZdZdZdZeZed d<04><04>Zde f<02>fd<05> Z
de je je e ffd<06>Zdede fd<08>Z<10>xZS)
<EFBFBD> BashCompletezShell completion for Bash.<2E>bashrc<00><><00>ddl}ddl}|jd<02>}|<02>d}nO|j|dddg|j<00><06>}t j d|jj<00><00>}|<03>;|j<00>\}}|dks
|dk(r|dkrttd <09>d
<EFBFBD> <0B>yyyttd <0C>d
<EFBFBD> <0B>y) Nrrmz--norcz-czecho "${BASH_VERSION}")<01>stdoutz^(\d+)\.(\d+)\.\d+<2B>4zCShell completion is not supported for Bash versions older than 4.4.T)<01>errz@Couldn't detect Bash version, shell completion is not supported.) <0C>shutil<69>
subprocess<EFBFBD>which<63>run<75>PIPErD<00>searchro<00>decode<64>groupsr r)rrrs<00>bash_exe<78>match<63>output<75>major<6F>minors r<00>_check_versionzBashComplete._check_version0s<><00><00><15><19><19><<3C><<3C><06>'<27><08> <13> <1B><18>E<EFBFBD><1F>^<5E>^<5E><19>8<EFBFBD>T<EFBFBD>+C<>D<>!<21><EFBFBD><EFBFBD>$<24><0E>F<EFBFBD><17>I<EFBFBD>I<EFBFBD>3<>V<EFBFBD>]<5D>]<5D>5I<35>5I<35>5K<35>L<>E<EFBFBD> <10> <1C> <20><<3C><<3C>><3E>L<EFBFBD>E<EFBFBD>5<EFBFBD><14>s<EFBFBD>{<7B>e<EFBFBD>s<EFBFBD>l<EFBFBD>u<EFBFBD>s<EFBFBD>{<7B><14><15>4<><16><1D> <12>0;<3B>l<EFBFBD> <11><11>T<>U<><18> rc<00>@<00><01>|j<00>t<00>|<00> <00>Sr))r<00>superr)r*<00> __class__s <20>rrzBashComplete.sourceQs<00><><00> <0C><1B><1B><1D><14>w<EFBFBD>~<7E><1F>rc<00><><00>ttjd<00>}ttjd<00>}|d|} ||}||fS#t$rd}Y||fSwxYw<01>N<>
COMP_WORDS<EFBFBD>
COMP_CWORDrr@<00>r <00>os<6F>environ<6F>int<6E>
IndexError<EFBFBD>r*<00>cwords<64>cwordrSrTs rrRz BashComplete.get_completion_argsU<00>o<00><00>!<21>"<22>*<2A>*<2A>\<5C>":<3A>;<3B><06><13>B<EFBFBD>J<EFBFBD>J<EFBFBD>|<7C>,<2C>-<2D><05><15>a<EFBFBD><05><EFBFBD><04> <1C><1F><05><1D>J<EFBFBD><14>Z<EFBFBD><1F><1F><><1A> <1C><1B>J<EFBFBD><13>Z<EFBFBD><1F><1F> <1C><><00>A<00> A<03>Ar[c<00>8<00>|j<00>d|j<00><00>S)N<>,)r$r#r]s rr^zBashComplete.format_completionas<00><00><16>)<29>)<29><1B>A<EFBFBD>d<EFBFBD>j<EFBFBD>j<EFBFBD>\<5C>*<2A>*r)rN)r1r2r3r4r,<00> _SOURCE_BASHr=<00> staticmethodrr8rr6rirjrRr!r^<00> __classcell__)r<>s@rrlrl*sd<00><><00>$<24> <11>D<EFBFBD>"<22>O<EFBFBD><11><0E><12><0E>@ <20><03> <20>
 <20>Q<EFBFBD>W<EFBFBD>W<EFBFBD>Q<EFBFBD>V<EFBFBD>V<EFBFBD>C<EFBFBD>[<5B>#<23>-=<3D>%><3E>
 <20>+<2B>n<EFBFBD>+<2B><13>+rrlc<00>l<00>eZdZdZdZeZdejeje
e
ffd<04>Z de de
fd<06>Z y)<08> ZshCompletezShell completion for Zsh.<2E>zshrc<00><><00>ttjd<00>}ttjd<00>}|d|} ||}||fS#t$rd}Y||fSwxYwr<>r<>r<>s rrRzZshComplete.get_completion_argskr<>r<>r[c<00>r<00>|j<00>d|j<00>d|jr|j<00><00>Sd<02><00>S)Nr`r)r$r#r%r]s rr^zZshComplete.format_completionws7<00><00><16>)<29>)<29><1B>B<EFBFBD>t<EFBFBD>z<EFBFBD>z<EFBFBD>l<EFBFBD>"<22>$<24>)<29>)<29>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>,M<>N<>N<><13>,M<>N<>NrN)r1r2r3r4r,<00> _SOURCE_ZSHr=r6rirjr8rRr!r^r:rrr<>r<>esG<00><00>#<23> <10>D<EFBFBD>!<21>O<EFBFBD>
 <20>Q<EFBFBD>W<EFBFBD>W<EFBFBD>Q<EFBFBD>V<EFBFBD>V<EFBFBD>C<EFBFBD>[<5B>#<23>-=<3D>%><3E>
 <20>O<01>n<EFBFBD>O<01><13>Orr<>c<00>l<00>eZdZdZdZeZdejeje
e
ffd<04>Z de de
fd<06>Z y)<08> FishCompletezShell completion for Fish.<2E>fishrc<00><><00>ttjd<00>}tjd}|dd}|r|r|d|k(r|j<00>||fS)Nr<4E>r<>r<00><><EFBFBD><EFBFBD><EFBFBD>)r r<>r<><00>pop)r*r<>rTrSs rrRz FishComplete.get_completion_args<67>sT<00><00>!<21>"<22>*<2A>*<2A>\<5C>":<3A>;<3B><06><17>Z<EFBFBD>Z<EFBFBD> <0C>-<2D>
<EFBFBD><15>a<EFBFBD>b<EFBFBD>z<EFBFBD><04> <16>$<24>4<EFBFBD><02>8<EFBFBD>z<EFBFBD>#9<> <10>H<EFBFBD>H<EFBFBD>J<EFBFBD><13>Z<EFBFBD><1F>rr[c<00><><00>|jr(|j<00>d|j<00>d|j<00><00>S|j<00>d|j<00><00>S)Nr<4E><00> )r%r$r#r]s rr^zFishComplete.format_completion<6F>sE<00><00> <0F>9<EFBFBD>9<EFBFBD><1A>i<EFBFBD>i<EFBFBD>[<5B><01>$<24>*<2A>*<2A><1C>R<EFBFBD><04> <09> <09>{<7B>;<3B> ;<3B><16>)<29>)<29><1B>A<EFBFBD>d<EFBFBD>j<EFBFBD>j<EFBFBD>\<5C>*<2A>*rN)r1r2r3r4r,<00> _SOURCE_FISHr=r6rirjr8rRr!r^r:rrr<>r<>{sD<00><00>$<24> <11>D<EFBFBD>"<22>O<EFBFBD>
 <20>Q<EFBFBD>W<EFBFBD>W<EFBFBD>Q<EFBFBD>V<EFBFBD>V<EFBFBD>C<EFBFBD>[<5B>#<23>-=<3D>%><3E>
 <20>+<2B>n<EFBFBD>+<2B><13>+rr<><00>ShellCompleteType)<01>bound)rmr<>r<><00>_available_shells<6C>clsr,c<00>4<00>|<01> |j}|t|<|S)amRegister a :class:`ShellComplete` subclass under the given name.
The name will be provided by the completion instruction environment
variable during completion.
:param cls: The completion class that will handle completion for the
shell.
:param name: Name to register the class under. Defaults to the
class's ``name`` attribute.
)r,r<>)r<>r,s r<00>add_completion_classr<73><00>s"<00><00> <0C>|<7C><12>x<EFBFBD>x<EFBFBD><04>!<21><15>d<EFBFBD><1B> <0E>Jrrc<00>,<00>tj|<00>S)z<>Look up a registered :class:`ShellComplete` subclass by the name
provided by the completion instruction environment variable. If the
name isn't registered, returns ``None``.
:param shell: Name the class is registered under.
)r<>r.)rs rrr<00>s<00><00> <1D> <20> <20><15> '<27>'rrX<00>paramc<00><><00>t|t<00>sy|j<00>J<00>|jj |j<00>}|j
dk(xsn|j |j<00>tjuxsA|j
dkDxr0t|ttf<02>xrt|<02>|j
kS)z<>Determine if the given parameter is an argument that can still
accept values.
:param ctx: Invocation context for the command represented by the
parsed complete args.
:param param: Argument object being checked.
Fr<46>r) <0C>
isinstancerr,<00>paramsr.<00>nargs<67>get_parameter_sourcer <00> COMMANDLINE<4E>tuple<6C>list<73>len)rXr<>r#s r<00>_is_incomplete_argumentr<74><00>s<><00><00> <16>e<EFBFBD>X<EFBFBD> &<26><14> <10>:<3A>:<3A> !<21>!<21> !<21> <0F>J<EFBFBD>J<EFBFBD>N<EFBFBD>N<EFBFBD>5<EFBFBD>:<3A>:<3A> &<26>E<EFBFBD> <0A> <0B> <0B>r<EFBFBD><19>
<EFBFBD> <0E> #<23> #<23>E<EFBFBD>J<EFBFBD>J<EFBFBD> /<2F><EFBFBD>7R<37>7R<37> R<>
<EFBFBD> <12>K<EFBFBD>K<EFBFBD>!<21>O<EFBFBD> )<29><1A>5<EFBFBD>5<EFBFBD>$<24>-<2D>0<> )<29><13>E<EFBFBD>
<EFBFBD>U<EFBFBD>[<5B>[<5B>(<28> rr#c<00>.<00>|sy|d}||jvS)z5Check if the value looks like the start of an option.Fr)<01> _opt_prefixes)rXr#<00>cs r<00>_start_of_optionr<6E><00>s"<00><00> <10><14> <0A>a<EFBFBD><08>A<EFBFBD> <0C><03>!<21>!<21> !<21>!rrSc<00><00>t|t<00>sy|js |jryd}t t |<01><00>D](\}}|dz|j kDrnt||<05>s<01>'|}<03>*|duxr||jvS)z<>Determine if the given parameter is an option that needs a value.
:param args: List of complete args before the incomplete value.
:param param: Option object being checked.
FNr) r<>r <00>is_flag<61>count<6E> enumerate<74>reversedr<64>r<><00>opts)rXrSr<><00> last_option<6F>index<65>args r<00>_is_incomplete_optionr<6E><00>sz<00><00> <16>e<EFBFBD>V<EFBFBD> $<24><14> <0C>}<7D>}<7D><05> <0B> <0B><14><16>K<EFBFBD><1F><08><14><0E>/<2F>
<EFBFBD><05>s<EFBFBD> <10>1<EFBFBD>9<EFBFBD>u<EFBFBD>{<7B>{<7B> "<22> <11> <1B>C<EFBFBD><13> %<25><1D>K<EFBFBD> 0<> <17>d<EFBFBD> "<22> @<40>{<7B>e<EFBFBD>j<EFBFBD>j<EFBFBD>'@<40>@rc<00>:<00>d|d<|j||j<00>fi|<01><01>}|j|jz}|r<>|j}t |t <00>r<>|jsI|j||<03>\}}}|<07>|S|j|||d<01><03>}|j|jz}nd|}|r@|j||<03>\}}}|<07>|S|j|||ddd<01><05>}|j}|r<01>@|}g|j<00>|j<00>}n |S|r<01><>|S)a`Produce the context hierarchy starting with the command and
traversing the complete arguments. This only follows the commands,
it doesn't trigger input prompts or callbacks.
:param cli: Command being called.
:param prog_name: Name of the executable in the shell.
:param args: List of complete args before the incomplete value.
T<>resilient_parsing)<02>parentr<74>F)r<><00>allow_extra_args<67>allow_interspersed_argsr<73>) <09> make_context<78>copy<70>protected_argsrS<00>commandr<64>r<00>chain<69>resolve_command) rrrrSrXr<>r,<00>cmd<6D>sub_ctxs rrVrV<00>sF<00><00>%)<29>H<EFBFBD> <20>!<21>
<1A>#<23>
<1A>
<1A>9<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD>k<EFBFBD>
><3E>X<EFBFBD>
><3E>C<EFBFBD> <0E> <1D> <1D><03><08><08> (<28>D<EFBFBD>
<0E><15>+<2B>+<2B><07> <15>g<EFBFBD>|<7C> ,<2C><1A>=<3D>=<3D>")<29>"9<>"9<>#<23>t<EFBFBD>"D<><0F><04>c<EFBFBD>4<EFBFBD><16>;<3B><1E>J<EFBFBD><19>&<26>&<26>t<EFBFBD>T<EFBFBD>#<23>QU<51>&<26>V<><03><1A>)<29>)<29>C<EFBFBD>H<EFBFBD>H<EFBFBD>4<><04><1D><07><1A>&-<2D>&=<3D>&=<3D>c<EFBFBD>4<EFBFBD>&H<>O<EFBFBD>D<EFBFBD>#<23>t<EFBFBD><1A>{<7B>"<22>
<EFBFBD>!<21>.<2E>.<2E><1C><1C>"<22>)-<2D>05<30>*.<2E> /<2F><16>G<EFBFBD>#<23><<3C><<3C>D<EFBFBD><1B> <1E><03>?<3F><17>/<2F>/<2F>?<3F>'<27>,<2C>,<2C>?<3F><04> <11> <0E>J<EFBFBD>I <0F>H <0F>JrrTc<00>r<00>|dk(rd}n6d|vr2t||<02>r&|jd<01>\}}}|j|<03>d|vrt||<02>r|j|fS|jj |<00>}|D]}t |||<06>s<01>||fcS|D]}t ||<06>s<01>||fcS|j|fS)ahFind the Click object that will handle the completion of the
incomplete value. Return the object and the incomplete value.
:param ctx: Invocation context for the command represented by
the parsed complete args.
:param args: List of complete args before the incomplete value.
:param incomplete: Value being completed. May be empty.
<20>=r@z--)r<>r<00>appendr<64><00>
get_paramsr<EFBFBD>r<>)rXrSrTr,rr<>r<>s rrWrW/s<><00><00><12>S<EFBFBD><18><17>
<EFBFBD> <0C>
<EFBFBD> <1A>/<2F><03>Z<EFBFBD>@<40>(<28>2<>2<>3<EFBFBD>7<><1B><04>a<EFBFBD><1A> <0C> <0B> <0B>D<EFBFBD><19>  <0C>4<EFBFBD><17>,<2C>S<EFBFBD>*<2A>=<3D><12>{<7B>{<7B>J<EFBFBD>&<26>&<26> <10>[<5B>[<5B> #<23> #<23>C<EFBFBD> (<28>F<EFBFBD><18><05> <20><13>d<EFBFBD>E<EFBFBD> 2<><18>*<2A>$<24> $<24><18> <18><05> "<22>3<EFBFBD><05> .<2E><18>*<2A>$<24> $<24><18> <0F>;<3B>;<3B>
<EFBFBD> "<22>"rr))1r<31>rD<00>typingr6rr<00>corerrrrr r
r <00>parserr <00>utilsr rfr8r7r<>rr!r<>r<>r<>r<rlr<>r<><00>TypeVar<61>Typer<65>r<>rhrer9r<>r<00>boolr<6C>r<>rjr<>rVri<00>UnionrWr:rr<00><module>r<>sm<00><01> <09> <09><12> <20><1A><1D><19><1E><18><1B>!<21>$<24><17># <0A> <14># <0A><0F><1E><1E>s<EFBFBD>A<EFBFBD>E<EFBFBD>E<EFBFBD>z<EFBFBD>*<2A># <0A><13># <0A><16> # <0A>
<15> # <0A>  <09> # <0A>L"$<24>"$<24>L<04> <0C>@*<04> <0B>X<04> <0C>.g<1E>g<1E>T8+<2B>=<3D>8+<2B>vO<01>-<2D>O<01>,+<2B>=<3D>+<2B>2<1E>A<EFBFBD>I<EFBFBD>I<EFBFBD>1<><11><16><16> <0A>9N<39>O<><11> <19> <18> <16>9<02><11>1<EFBFBD>6<EFBFBD>6<EFBFBD>#<23>q<EFBFBD>v<EFBFBD>v<EFBFBD>m<EFBFBD>4<>4<>5<><02>59<35><0F> <1A><0F>"#<23>*<2A>*<2A>S<EFBFBD>/<2F><0F><16><0F>((<28><03>(<28><01>
<EFBFBD>
<EFBFBD>1<EFBFBD>6<EFBFBD>6<EFBFBD>-<2D>3H<33>(I<>(<28><06><17><06><19><06>t<EFBFBD><06>2"<22>'<27>"<22>#<23>"<22>$<24>"<22>A<01>w<EFBFBD>A<01>a<EFBFBD>f<EFBFBD>f<EFBFBD>S<EFBFBD>k<EFBFBD>A<01>)<29>A<01>PT<50>A<01>06<0F> <14>6<0F><0F><1E><1E>s<EFBFBD>A<EFBFBD>E<EFBFBD>E<EFBFBD>z<EFBFBD>*<2A>6<0F><13>6<0F> <0C>&<26>&<26><13>+<2B> 6<0F>
 <0A> 6<0F>r,#<23> <10>,#<23><19><06><06>s<EFBFBD> <0B>,#<23>14<31>,#<23><06>W<EFBFBD>W<EFBFBD>Q<EFBFBD>W<EFBFBD>W<EFBFBD>[<5B>)<29>+<2B> ,<2C>c<EFBFBD> 1<>2<>,#r