
    ^j                     |    d Z ddlmZ ddlZddlmZ  G d dej                        Z G d dej                        Z	y)	z,Pretty ANSI help formatter for the `hf` CLI.    )IterableN)ANSIc            	       R     e Zd ZdeddfdZd	deeeef      dededdf fdZ xZ	S )
StyledHelpFormatterheadingreturnNc                 ~    t        j                  |dz         }| j                  dd| j                   d| d       y )N: >
)r   	underlinewritecurrent_indent)selfr   styleds      n/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/huggingface_hub/cli/_help_formatter.pywrite_headingz!StyledHelpFormatter.write_heading   s>    #.

b4../p/0;<    rowscol_maxcol_spacingc                     |D cg c]  \  }}t        j                  |      |f }}}t        |   |||       y c c}}w )N)r   r   )r   boldsuperwrite_dl)r   r   r   r   firstsecond	__class__s         r   r   zStyledHelpFormatter.write_dl   sB    @DE}uf5!6*EEwKH Fs   !>)      )
__name__
__module____qualname__strr   r   tupleintr   __classcell__)r   s   @r   r   r      sQ    =S =T =IXeCHo6 I IX[ Idh I Ir   r   c                       e Zd ZeZy)StyledContextN)r"   r#   r$   r   formatter_class r   r   r*   r*   !   s    )Or   r*   )
__doc__collections.abcr   clickhuggingface_hub.utilsr   HelpFormatterr   Contextr*   r,   r   r   <module>r3      s7    3 $  &I%-- I*EMM *r   