
    5pj                         S r SSKrSSKrSSKrSSKrSSKJrJr  SSKJ	r	J
r
  SSKJrJr  SSKJr  SS	KJrJr  SS jrSS jrSS jrS
\\   4S jrg)zIContains commands to print information about the environment and version.    N)__version__	constants   )dump_environment_infoinstallation_method   )_fetch_latest_pypi_version
run_update)out)DEFAULT_SKILL_ID_installed_hf_cli_dirsreturnc                      [        5         g)z(Print information about the environment.N)r        V/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/huggingface_hub/cli/system.pyenvr      s    r   c                  6    [         R                  " S[        S9  g)z'Print information about the hf version.z
hf version)versionN)r   resultr   r   r   r   r   r   #   s    JJ|[1r   c                  p   [         R                  " S[         35        [         R                  " S5        [        S5      n U b)  [        U :X  a  [         R                  " S[         S35        g[	        [        [        R                  [        R                  5      5      n[        U(       + S9nUS:w  a  [        R                  R                  US	9eU(       d  [         R                  " S
5        g[         R                  " S[         S35        [        R                   " / [#        5       QSPSP[        PSPSP5        g)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 ())exclude_skillr   )codezPRun `hf skills add -g --claude` to teach your AI agents how to use the `hf` CLI.zUpdating the `z
` skill...skillsupdatez-gz--claude)r   textr   r	   boolr   r   AGENTS_SKILLS_GLOBAL_PATHCLAUDE_SKILLS_GLOBAL_PATHr
   click
exceptionsExithintr   
subprocesscall_hf_argv)latest_versionskill_installed
returncodes      r   r   r   (   s    HH ./HH89/0ABN!k^&C%k]!45
 yBBIDgDghO o*=>JQ###44cd
 HH~./z:;OOYhjY(YHY6FYYjYZr   c                  |    [        5       S:X  a  [        R                  " S5      n U b  U /$ [        R                  SS/$ )z3argv prefix to invoke the freshly updated `hf` CLI.brewhfz-mzhuggingface_hub.cli.hf)r   shutilwhichsys
executable)hf_bins    r   r(   r(   G   s:    &d#8ONND":;;r   )r   N)__doc__r/   r&   r1   r"   r   r   r   utilsr   r   
_cli_utilsr	   r
   _outputr   _skillsr   r   r   r   r   liststrr(   r   r   r   <module>r;      sF    P   
  2 > >  =
2
[><$s) <r   