
    -: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y)zIContains commands to print information about the environment and version.    N)__version__   dump_environment_info   )_fetch_latest_pypi_version
run_update)outc                      t                y)z(Print information about the environment.Nr        \/var/www/html/tokenscope/api/venv/lib/python3.12/site-packages/huggingface_hub/cli/system.pyenvr      s    r   c                  :    t        j                  dt               y)z'Print information about the hf version.z
hf version)versionN)r
   resultr   r   r   r   r   r      s    JJ|[1r   c                  B   t        j                  dt                t        j                  d       t        d      } | 't        | k(  rt        j                  dt         d       yt	               }|dk7  rt        j                  |      t        j                  d	       y)
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    HH ./HH89/0ABN!k^&C%k]!45JQjjj))HH	<r   )returnN)__doc__r   r   r   utilsr   
_cli_utilsr   r	   _outputr
   r   r   r   r   r   r   <module>r#      s)    P  ' ) > 
2
r   