
    {bj                         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        ږ/tmp/claude-0/-home-danvics-docker-quiz/c1e0577a-e42c-4a3d-b1ea-3edd61103a4e/scratchpad/stt/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                  t   [         R                  " S[         35        [         R                  " S5        [        S5      n U b)  [        U :X  a  [         R                  " S[         S35        g[        R
                  S:X  an  [        5       S:X  a`  [        R                  " [        R                  S	SS
SS/5      n[         R                  " SU 35        [        R                  R                  SS9e[        [        [         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 ()win32pip-minstallz-UzOn Windows, a pip-installed `hf` cannot update itself: pip is not allowed to replace `hf.exe` while it is running. Run this command instead:
    r   )code)exclude_skillr   zPRun `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	   sysplatformr   
subprocesslist2cmdline
executableerrorclick
exceptionsExitboolr   r   AGENTS_SKILLS_GLOBAL_PATHCLAUDE_SKILLS_GLOBAL_PATHr
   hintr   call_hf_argv)latest_versioncommandskill_installed
returncodes       r   r!   r!   (   st   HH ./HH89/0ABN!k^&C%k]!45 ||w#6#8E#A))3>>4	SWYj*kl		::AD	
 ###++
 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hfr   zhuggingface_hub.cli.hf)r   shutilwhichr#   r'   )hf_bins    r   r1   r1   S   s:    &d#8ONND":;;r   )r   N)__doc__r9   r%   r#   r)   r   r   r   utilsr   r   
_cli_utilsr	   r
   _outputr   _skillsr   r   r   r   r!   liststrr1   r   r   r   <module>rC      sG    P   
  2 > >  =
2
([V<$s) <r   