ó
    ‡iš  ã                   ó¾   • S r SSKrSSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SS	KJr  S
SKJr  \R"                  " \5      r " S S\5      r " S S5      rg)a&  Contains commands to interact with repositories on the Hugging Face Hub.

Usage:
    # create a new dataset repo on the Hub
    huggingface-cli repo create my-cool-dataset --repo-type=dataset

    # create a private model repo on the Hub
    huggingface-cli repo create my-cool-model --private
é    N)Ú_SubParsersAction)ÚOptional)ÚBaseHuggingfaceCLICommand)ÚANSI)ÚSPACES_SDK_TYPES)ÚHfApi)Úloggingé   )Úshow_deprecation_warningc                   ó,   • \ rS rSr\S\4S j5       rSrg)ÚRepoCommandsé(   Úparserc                 ó  • U R                  SSS9nUR                  SS9nUR                  SSS9nUR                  S[        SS	9  UR                  S
[        SS	9  UR                  S[        S[        S9  UR                  SSSS9  UR                  S[        SS	9  UR                  SSSS9  UR                  S[        SS	9  UR                  S[        SS	9  UR                  SSSSS9  UR                  S[        SS	9  UR                  S  S!9  g )"NÚrepoz={create} Commands to interact with your huggingface.co repos.)Úhelpz%huggingface.co repos related commandsÚcreatez#Create a new repo on huggingface.coÚrepo_idz‡The ID of the repo to create to (e.g. `username/repo-name`). The username is optional and will be set to your username if not provided.)Útyper   z--repo-typezWOptional: set to "dataset" or "space" if creating a dataset or space, default is model.z--space_sdkzOOptional: Hugging Face Spaces SDK type. Required when --type is set to "space".)r   r   Úchoicesz	--privateÚ
store_truezhWhether to create a private repository. Defaults to public unless the organization's default is private.)Úactionr   z--tokenzLHugging Face token. Will default to the locally saved token if not provided.z
--exist-okz-Do not raise an error if repo already exists.z--resource-group-idzoResource group in which to create the repo. Resource groups is only available for Enterprise Hub organizations.z--typez&[Deprecated]: use --repo-type instead.z-yz--yesz[Deprecated] no effect.z--organizationzE[Deprecated] Pass the organization namespace directly in the repo_id.c                 ó   • [        U 5      $ )N)ÚRepoCreateCommand)Úargss    Úm/home/dmtnaga/Documents/work/airagagent/rag_env/lib/python3.13/site-packages/huggingface_hub/commands/repo.pyÚ<lambda>Ú2RepoCommands.register_subcommand.<locals>.<lambda>`   s
   € Ô:KÈDÔ:Qó    )Úfunc)Ú
add_parserÚadd_subparsersÚadd_argumentÚstrr   Úset_defaults)r   Úrepo_parserÚrepo_subparsersÚrepo_create_parsers       r   Úregister_subcommandÚ RepoCommands.register_subcommand)   sŒ  € à×'Ñ'¨Ð5tÐ'ÐuˆØ%×4Ñ4Ð:aÐ4ÐbˆØ,×7Ñ7¸ÐGlÐ7ÐmÐØ×'Ñ'ØÜð [ð 	(ñ 	
ð
 	×'Ñ'ØÜØjð 	(ñ 	
ð
 	×'Ñ'ØÜØbÜ$ð	 	(ñ 	
ð 	×'Ñ'ØØØ{ð 	(ñ 	
ð
 	×'Ñ'ØÜØ_ð 	(ñ 	
ð
 	×'Ñ'ØØØ@ð 	(ñ 	
ð
 	×'Ñ'Ø!Üð Cð 	(ñ 	
ð
 	×'Ñ'ØÜØ9ð 	(ñ 	
ð
 	×'Ñ'ØØØØ*ð	 	(ñ 	
ð 	×'Ñ'Ø¤3Ð-tð 	(ñ 	
ð 	×'Ñ'Ñ-QÐ'ÒRr   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ústaticmethodr   r)   Ú__static_attributes__r+   r   r   r   r   (   s   † Øð6SÐ$5ó 6Só ó6Sr   r   c                   ó<   • \ rS rSrS\R
                  4S jrS rSrg)r   éc   r   c                 óŠ  • UR                   U l         UR                  =(       d    UR                  U l        UR                  U l        UR                  U l        UR
                  U l        UR                  U l        UR                  U l        UR                  U l        UR                  U l	        UR                  b  [        [        R                  " S5      5        U R                  b  [        [        R                  " S5      5        U R
                  (       a  [        [        R                  " S5      5        [        5       U l        g )NzcThe --type argument is deprecated and will be removed in a future version. Use --repo-type instead.z‹The --organization argument is deprecated and will be removed in a future version. Pass the organization namespace directly in the repo_id.zfThe --yes argument is deprecated and will be removed in a future version. It does not have any effect.)r   Ú	repo_typer   Ú	space_sdkÚorganizationÚyesÚprivateÚtokenÚexist_okÚresource_group_idÚprintr   Úyellowr   Ú_api)Úselfr   s     r   Ú__init__ÚRepoCreateCommand.__init__d   sè   € Ø ŸL™LˆŒØ(,¯©×(C¸$¿)¹)ˆŒØ(,¯©ˆŒØ+/×+<Ñ+<ˆÔØŸ™ˆŒØ!Ÿ\™\ˆŒØ$(§J¡JˆŒ
Ø"Ÿm™mˆŒØ04×0FÑ0FˆÔà9‰9Ñ ÜÜ—’Øyóôð
 ×ÑÑ(ÜÜ—’ð bóôð
 88ÜÜ—’Ø|óôô “Gˆ	r   c           
      óR  • [        SS5        U R                  bZ  SU R                  ;   a*  [        [        R
                  " S5      5        [        S5        U R                   SU R                   3U l        U R                  R                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  S9n[        S[        R                  " UR                  5       S35        [        S	[        R                  " U5       35        g )
Nzhuggingface-cli repozhf repoÚ/zCYou cannot pass both --organization and a repo_id with a namespace.r
   )r   r5   r9   r:   r;   r<   r6   zSuccessfully created z on the Hub.zYour repo is now available at )r   r7   r   r=   r   ÚredÚexitr?   Úcreate_repor5   r9   r:   r;   r<   r6   Úbold)r@   Úrepo_urls     r   ÚrunÚRepoCreateCommand.run„   så   € Ü Ð!7¸ÔCà×ÑÑ(Ød—l‘lÓ"Ü”d—h’hÐdÓeÔfÜQ”Ø"×/Ñ/Ð0°°$·,±,°Ð@ˆDŒLà—9‘9×(Ñ(Ø—L‘LØ—n‘nØ—L‘LØ—*‘*Ø—]‘]Ø"×4Ñ4Ø—n‘nð )ð 
ˆô 	Ð%¤d§i¢i°×0@Ñ0@Ó&AÐ%BÀ,ÐOÔPÜÐ.¬t¯yªy¸Ó/BÐ.CÐDÕEr   )
r?   r;   r7   r9   r   r5   r<   r6   r:   r8   N)	r,   r-   r.   r/   ÚargparseÚ	NamespacerA   rJ   r1   r+   r   r   r   r   c   s   † ð˜X×/Ñ/ô õ@Fr   r   )Ú__doc__rL   r   Útypingr   Úhuggingface_hub.commandsr   Ú#huggingface_hub.commands._cli_utilsr   Úhuggingface_hub.constantsr   Úhuggingface_hub.hf_apir   Úhuggingface_hub.utilsr	   Ú
_cli_utilsr   Ú
get_loggerr,   Úloggerr   r   r+   r   r   Ú<module>rX      sU   ðñó Ý &Ý å >Ý 4Ý 6Ý (Ý )å 0ð 
×	Ò	˜HÓ	%€ô8SÐ,ô 8S÷v4Fò 4Fr   