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

Kept for backward compatibility. Users are nudged to use `hf repos delete-files` instead.
    N)	AnnotatedOptional)logging)ANSI   )	RepoIdArgRepoTypeRepoTypeOptRevisionOptTokenOpt
get_hf_apityper_factoryzT(Deprecated) Manage files in a repo on the Hub. Use `hf repos delete-files` instead.)helpdeleteF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          t          j        d          t          j                   t          |          }|                    || |j        ||||          }	t          d|	 d           t          j	                     d S )NzYFutureWarning: `hf repo-files delete` is deprecated. Use `hf repos delete-files` instead.)file)r   )delete_patternsr   r   r   r   r   r   z+Files correctly deleted from repo. Commit: .)
printr   yellowsysstderrr   delete_filesvaluer   set_verbosity_warning)
r   r   r   r   r   r   r   r   apiurls
             Y/root/projects/butler/venv/lib/python3.11/site-packages/huggingface_hub/cli/repo_files.pyrepo_files_deleter(   '   s    B 
oppZ    5
!
!
!C


 /%-   C 

>
>
>
>???!#####    )__doc__r    typingr   r   typerhuggingface_hubr   huggingface_hub.utilsr   
_cli_utilsr   r	   r
   r   r   r   r   
get_logger__name__loggerrepo_files_clicommandmodelliststrArgumentOptionboolr(    r)   r'   <module>r<      s   
 


 & & & & & & & &  # # # # # # & & & & & & j j j j j j j j j j j j j j j j j j 
	H	%	% 	_  
   &^  	 	 	9-$ -$-$S	k	
 	
 	
	-$ -$ -$ L	
 	
 	
	-$  ";	
 	
 	
	!-$, J	
 	
 	
	--$8 9-$: 
;-$ -$ -$ -$ -$ -$r)   