U
    Ód¨i	  ã                   @   s¢   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ d d	lmZmZ d d
lmZ d dlmZ dd„ Zedkržeƒ  dS )é    )ÚArgumentParser)ÚAuthCommands)ÚCacheCommand)ÚDownloadCommand)ÚJobsCommands)ÚLfsCommands)ÚRepoCommands)ÚRepoFilesCommand)ÚEnvironmentCommandÚVersionCommand)ÚUploadCommand)ÚUploadLargeFolderCommandc                  C   sÆ   t ddd} | jdd}t |¡ t |¡ t |¡ t |¡ t |¡ t |¡ t	 |¡ t
 |¡ t |¡ t |¡ t |¡ |  ¡ }t|dƒs¨|  ¡  tdƒ | |¡}|d k	rÂ| ¡  d S )NZhfzhf <command> [<args>])Úusagezhf command helpers)ÚhelpÚfuncé   )r   Úadd_subparsersr   Zregister_subcommandr   r   r   r   r	   r   r   r
   r   r   Ú
parse_argsÚhasattrÚ
print_helpÚexitr   Úrun)ÚparserZcommands_parserÚargsZservice© r   ú:/tmp/pip-unpacked-wheel-ohruig0i/huggingface_hub/cli/hf.pyÚmain   s(    












r   Ú__main__N)Úargparser   Zhuggingface_hub.cli.authr   Zhuggingface_hub.cli.cacher   Zhuggingface_hub.cli.downloadr   Zhuggingface_hub.cli.jobsr   Zhuggingface_hub.cli.lfsr   Zhuggingface_hub.cli.repor   Zhuggingface_hub.cli.repo_filesr	   Zhuggingface_hub.cli.systemr
   r   Zhuggingface_hub.cli.uploadr   Z'huggingface_hub.cli.upload_large_folderr   r   Ú__name__r   r   r   r   Ú<module>   s   !