
    j                     ^    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
ZddZ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                  "    t                       dS )z(Print information about the environment.Nr        ]/var/www/html/Carbon-Document/venv/lib/python3.11/site-packages/huggingface_hub/cli/system.pyenvr      s    r   c                  .    t          t                     dS )z'Print information about the hf version.N)printr   r   r   r   versionr      s    	+r   c                  V   t          j        dt                      t          j        d           t          d          } | *t          | k    rt          j        dt           d           dS t	                      }|dk    rt          j        |          t          j        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 update` to refresh any installed skills so your AI agent sees the latest command surface.)r
   textr   r   r	   typerExithint)latest_version
returncodes     r   updater   #   s    H...///H8999/0ABBN!k^&C&C4k444555JQjj))))H	<    r   )r   N)__doc__r   r   r   utilsr   
_cli_utilsr   r	   _outputr
   r   r   r   r   r   r   <module>r#      s    P O  ' ' ' ' ' ' ) ) ) ) ) ) > > > > > > > >         
   
     r   