
    rh                     d    d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d d	e      Z	 G d
 de      Z
y)zlContains commands to print information about the environment and version.

Usage:
    hf env
    hf version
    )_SubParsersAction)__version__   dump_environment_info   )BaseHuggingfaceCLICommandc                   0    e Zd Zd Zedefd       ZddZy)EnvironmentCommandc                     || _         y Nargsselfr   s     m/var/www/html/ai-insurance-compliance-backend/venv/lib/python3.12/site-packages/huggingface_hub/cli/system.py__init__zEnvironmentCommand.__init__   	    	    parserc                 V    | j                  dd      }|j                  t               y )Nenvz(Print information about the environment.helpfunc)
add_parserset_defaultsr   )r   
env_parsers     r   register_subcommandz&EnvironmentCommand.register_subcommand!   s*    &&u3]&^
%78r   Nc                     t                y r   r   r   s    r   runzEnvironmentCommand.run&   s    r   returnN__name__
__module____qualname__r   staticmethodr   r    r#    r   r   r   r      s(     9$5 9 9 r   r   c                   0    e Zd Zd Zedefd       ZddZy)VersionCommandc                     || _         y r   r   r   s     r   r   zVersionCommand.__init__+   r   r   r   c                 V    | j                  dd      }|j                  t               y )Nversionz'Print information about the hf version.r   r   )r   r   r-   )r   version_parsers     r   r    z"VersionCommand.register_subcommand.   s)    **9;d*e###8r   Nc                 (    t        dt                y )Nzhuggingface_hub version: )printr   r"   s    r   r#   zVersionCommand.run3   s    )+78r   r$   r&   r+   r   r   r-   r-   *   s(     9$5 9 99r   r-   N)__doc__argparser   huggingface_hubr   utilsr    r	   r   r-   r+   r   r   <module>r9      s2    ' ' ) '
 2 
 
9. 
9r   