
    \j	                     N   d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
 ddlmZmZ ddlmZ  e
d      Zej#                  d	      ej$                  d
d
d
dd
fdedeee    ed      f   dededeed
z   ed      f   deed
z   ed      f   dee ed      f   dedd
fd       Zy
)z{Legacy `hf repo-files` command.

Kept for backward compatibility. Users are nudged to use `hf repos delete-files` instead.
    )	Annotated   )	RepoIdArgRepoTypeRepoTypeOptRevisionOptTokenOpt
get_hf_apityper_factory)ArgumentOption)outzT(Deprecated) Manage files in a repo on the Hub. Use `hf repos delete-files` instead.)helpdeleteNFrepo_idpatternszXGlob patterns to match files to delete. Based on fnmatch, '*' matches files recursively.	repo_typerevisioncommit_messagez9The summary / title / first line of the generated commit.commit_descriptionz(The description of the generated commit.	create_prz7Whether to create a new Pull Request for these changes.tokenreturnc           	          t        j                  d       t        |      }|j                  || |j                  ||||      }	t        j
                  d| |	       y )NzJ`hf repo-files delete` is deprecated. Use `hf repos delete-files` instead.)r   )delete_patternsr   r   r   r   r   r   zFiles deleted)r   
commit_url)r   warningr
   delete_filesvalueresult)
r   r   r   r   r   r   r   r   apiurls
             Q/root/.hermes/venv/lib/python3.12/site-packages/huggingface_hub/cli/repo_files.pyrepo_files_deleter$   '   s\    B KK\]
5
!C


 //%-  C JJC@    )__doc__typingr   
_cli_utilsr   r   r   r   r	   r
   r   
_frameworkr   r   _outputr   repo_files_clicommandmodelliststrboolr$    r%   r#   <module>r2      sB  
    )  	_
  &^^  	 	 	9)A)AS	k	
	)A )A )A d
L	
	)A  "d
;	
	!)A, J	
	-)A8 9)A: 
;)A)Ar%   