o
    0iM
                     @   s  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e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e ejdd	f deee 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.
    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           
   	   C   sT   t tdtjd t|d}|j|| |j||||d}	t d|	 d t	  d S )NzYFutureWarning: `hf repo-files delete` is deprecated. Use `hf repos delete-files` instead.)file)r   )Zdelete_patternsr   r   r   r   r   r   z+Files correctly deleted from repo. Commit: .)
printr   yellowsysstderrr   Zdelete_filesvaluer   Zset_verbosity_warning)
r   r   r   r   r   r   r   r   apiurl r"   X/home/kim/smarthome/.venv/lib/python3.10/site-packages/huggingface_hub/cli/repo_files.pyrepo_files_delete'   s    !
	r$   )__doc__r   typingr   r   ZtyperZhuggingface_hubr   Zhuggingface_hub.utilsr   Z
_cli_utilsr   r   r	   r
   r   r   r   Z
get_logger__name__loggerZrepo_files_clicommandmodelliststrZArgumentOptionboolr$   r"   r"   r"   r#   <module>   s~   $
	
