o
    0j                     @   sb   d Z ddlZddlmZ ddlmZ ddlmZmZ ddl	m
Z
 dd
dZdddZdddZdS )zIContains commands to print information about the environment and version.    N)__version__   dump_environment_info   )_fetch_latest_pypi_version
run_update)outreturnc                   C   s
   t   dS )z(Print information about the environment.Nr    r   r   [/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/huggingface_hub/cli/system.pyenv   s   
r   c                   C   s   t t dS )z'Print information about the hf version.N)printr   r   r   r   r   version   s   r   c                  C   sp   t dt  t d td} | dur$t| kr$t dt d dS t }|dkr1tj|dt d	 dS )
z*Update the `hf` CLI to the latest version.zCurrent version: z)Checking for updates to latest version...huggingface_hubNzhf is up to date ()r   )codez~You may also want to run `hf skills upgrade` to refresh any installed skills so your AI agent sees the latest command surface.)r	   textr   r   r   typerZExithint)Zlatest_version
returncoder   r   r   update#   s   
r   )r
   N)__doc__r   r   r   utilsr   Z
_cli_utilsr   r   _outputr	   r   r   r   r   r   r   r   <module>   s   

