+
        1                         ^ RI t ^ RIt^ RItR t ! R R4      t ! R R]4      t]! ]P                  4      t ! R R]4      t ! R	 R
]4      t	 ! R R]	4      t
 ! R R]4      tR# )    Nc                      R VR&    \         P                  ! V / VB P                  4       #   \         P                   d    . u # i ; i)Tuniversal_newlines)
subprocesscheck_output
splitlinesCalledProcessError)argskwargss   *,;/usr/lib/python3.14/site-packages/argcomplete/completers.py_callr   	   sK    #'F &&77BBDD(( 	s   #+ AAc                   6   a  ] tR t^t o RtV 3R lR ltRtV tR# )BaseCompleterzI
This is the base class that all argcomplete completers should subclass.
c          
      r   < V ^8  d   QhRS[ RS[P                  RS[P                  RS[P                  RR/# )   prefixactionparserparsed_argsreturnN)strargparseActionArgumentParser	Namespace)format__classdict__s   "r   __annotate__BaseCompleter.__annotate__   sL     V VV&.ooV?G?V?VVemewewV	V    c                   \        R 4      h)z0This method should be implemented by a subclass.)NotImplementedError)selfr   r   r   r   s   &$$$$r   __call__BaseCompleter.__call__   s     ""TUUr    N)__name__
__module____qualname____firstlineno____doc__r#   __static_attributes____classdictcell__r   s   @r   r   r      s     V Vr   r   c                   2   a  ] tR t^t o R tR tR tRtV tR# )ChoicesCompleterc                    Wn         R # Nchoices)r"   r3   s   &&r   __init__ChoicesCompleter.__init__   s    r   c                H    \        V\        4      '       g   \        V4      pV# r1   )
isinstancer   )r"   choices   &&r   _convertChoicesCompleter._convert!   s    &#&&[Fr   c                0   a  V 3R  lS P                    4       # )c              3   F   <"   T F  pSP                  V4      x  K  	  R # 5ir1   )r9   ).0cr"   s   & r   	<genexpr>,ChoicesCompleter.__call__.<locals>.<genexpr>'   s     7,Qa  ,s   !r2   )r"   r
   s   f,r   r#   ChoicesCompleter.__call__&   s    7$,,77r   r2   N)	r&   r'   r(   r)   r4   r9   r#   r+   r,   r-   s   @r   r/   r/      s     
8 8r   r/   c                   4   a  ] tR t^-t o RtRR ltR tRtV tR# )FilesCompleterzE
File completer class, optionally takes a list of allowed extensions
c                    \        V\        \        34      '       d   V.pV Uu. uF"  q3P                  R 4      P                  R4      NK$  	  upV n        W n        R# u upi )*.N)r7   r   byteslstripallowednamesdirectories)r"   rI   rJ   xs   &&& r   r4   FilesCompleter.__init__2   sN    lS%L11(>L@LM1XXc]11#6M& Ns   (Ac                    . pV P                   '       d   V P                  '       dM   \        R RRP                  VR7      .\        P
                  R7      pY4 Uu. uF  qUR,           NK  	  up,          pV P                    F8  pV\        R RRP                  WaR7      .\        P
                  R7      ,          pK:  	  V# V\        R RRP                  VR7      .\        P
                  R7      ,          p\        R RRP                  VR7      .\        P
                  R7      p\        \        V4      \        V4      ,
          4      pV P                  '       d   Y7 Uu. uF  qUR,           NK  	  up,          pV# u upi u upi )bashz-cz#bind; compgen -A directory -- '{p}')p)stderr/z*bind; compgen -A file -X '!*.{0}' -- '{p}'zbind; compgen -A file -- '{p}')rI   rJ   r   r   r   DEVNULLlistset)r"   r   r
   
completionfilesfrK   anticomps   &&,     r   r#   FilesCompleter.__call__:   sn   

 T#H#O#ORX#O#YZcmcucu 613ww66
&&eT#O#V#VWX#V#cd%-- 
 '   %?FFFPQZdZlZl J DKKfKUV_i_q_qH c*oH=>J913ww99
# 7  :s   E6E;)rI   rJ   N)r%   T)	r&   r'   r(   r)   r*   r4   r#   r+   r,   r-   s   @r   rC   rC   -   s     ' r   rC   c                   ,   a  ] tR t^Yt o R tR tRtV tR# )_FilteredFilesCompleterc                0    V'       g   Q R4       hWn         R# )zv
Create the completer

A predicate accepts as its only argument a candidate path and either
accepts it or rejects it.
zExpected a callable predicateN	predicate)r"   r^   s   &&r   r4    _FilteredFilesCompleter.__init__Z   s     999y"r   c              +    "   \         P                  P                  V4      p \         P                  ! T;'       g    R4      p\         P                  P                  T4      pT F  pTP                  T4      '       g   K  \         P                  P                  Y64      pT P                  T4      '       g   KT  \         P                  P                  T4      '       d
   TR,           MTx  K  	  R#   \         d     R# i ; i5i)z
Provide completions on prefix
rF   NrQ   )
ospathdirnamelistdir	Exceptionbasename
startswithjoinr^   isdir)r"   r   r
   
target_dirnamesincomplete_partname	candidates   &&,     r   r#    _FilteredFilesCompleter.__call__d   s      WW__V,
	JJz00S1E ''**62D???33Z6I>>),,%'WW]]9%=%=)c/9L 	  		s/    D C0 BDD0C?;D>C??Dr]   N)r&   r'   r(   r)   r4   r#   r+   r,   r-   s   @r   r[   r[   Y   s     #M Mr   r[   c                   &   a  ] tR t^xt o R tRtV tR# )DirectoriesCompleterc                d    \         P                  V \        P                  P                  R 7       R# )r]   N)r[   r4   ra   rb   ri   r"   s   &r   r4   DirectoriesCompleter.__init__y   s    (((Gr   r%   N)r&   r'   r(   r)   r4   r+   r,   r-   s   @r   rq   rq   x   s     H Hr   rq   c                   0   a  ] tR t^}t o RtR tR tRtV tR# )SuppressCompleterzC
A completer used to suppress the completion of specific arguments
c                    R # r1   r%   rs   s   &r   r4   SuppressCompleter.__init__   s    r   c                    R# )z/
Decide if the completion should be suppressed
Tr%   rs   s   &r   suppressSuppressCompleter.suppress   s     r   r%   N)	r&   r'   r(   r)   r*   r4   rz   r+   r,   r-   s   @r   rv   rv   }   s      r   rv   )r   ra   r   r   r   r/   environEnvironCompleterrC   r[   rq   rv   r%   r   r   <module>r~      st     	 V V
8} 
8 $BJJ/ )] )XMm M>H2 H
 r   