
    wi                     r    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
dS )zlContains commands to print information about the environment and version.

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