o
    0j	                     @   s   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 ddlmZ eddZed	ejdddd
dfdedeee ejddf dededeedB ejddf deedB ejddf deeejddf de	ddfddZdS )z{Legacy `hf repo-files` command.

Kept for backward compatibility. Users are nudged to use `hf repos delete-files` instead.
    )	AnnotatedN   )	RepoIdArgRepoTypeRepoTypeOptRevisionOptTokenOpt
get_hf_apityper_factory)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returnc           
   	   C   sB   t d t|d}|j|| |j||||d}	t jd| |	d d S )NzJ`hf repo-files delete` is deprecated. Use `hf repos delete-files` instead.)r   )Zdelete_patternsr   r   r   r   r   r   zFiles deleted)r   Z
commit_url)r   warningr	   Zdelete_filesvalueresult)
r   r   r   r   r   r   r   r   apiurl r   _/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/huggingface_hub/cli/repo_files.pyrepo_files_delete(   s   
!
	r   )__doc__typingr   ZtyperZ
_cli_utilsr   r   r   r   r   r	   r
   _outputr   Zrepo_files_clicommandmodelliststrZArgumentOptionboolr   r   r   r   r   <module>   sx   $		
