
    i	                        d Z ddlmZ ddlZddlmZmZmZmZm	Z	m
Z
mZmZ ddlmZmZ  ed      Zej#                  d	      ej$                  dddd
dej&                  fdedeee    ej,                  d      f   dede	deedz   ej.                  d      f   deedz   ej.                  d      f   dee ej.                  d      f   de
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.
    )	AnnotatedN   )FormatWithAutoOpt	RepoIdArgRepoTypeRepoTypeOptRevisionOptTokenOpt
get_hf_apityper_factory)OutputFormatWithAutooutzT(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format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   r   apiurls              o/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/huggingface_hub/cli/repo_files.pyrepo_files_deleter%   )   s\    D KK\]
5
!C


 //%-  C JJC@    )__doc__typingr   typer
_cli_utilsr   r   r   r   r	   r
   r   r   _outputr   r   repo_files_clicommandmodelautoliststrArgumentOptionboolr%    r&   r$   <module>r6      sn  
  	 	 	 / 	_
  &^^  	 	 	 4 9 9;*A*AS	k	
	*A *A *A d
L	
	*A  "d
;	
	!*A, J	
	-*A8 9*A: ;*A< 
=*A*Ar&   