o
    0io                     @   s  d Z ddlZddlZddlZddlZddlZddl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mZmZ ddlZddlZddlmZmZ ddlmZmZmZm Z m!Z!m"Z" ddl#m$Z$ e!% Z&d	Z'ertdd
l(m)Z) dydee* ddfddZ+dZ,dyde-e* dee* de*fddZ.eed e*f Z/ee-e* e0e* gee1 f Z2dee* dej3dej4ddfddZ5e6dZ7G dd dej8j9Z:	dyde2deeg e-e;e*e*f  f  de<e: fd d!Z=dyd"e/dee-e*  de<ej8j> fd#d$Z?G d%d& d&ej@ZA	dzd'e*dee* d(ee<ej8j9  dd&fd)d*ZBG d+d, d,e*e
ZCee*ejDd-d.f ZEeeCejFd/d0d1d.f ZGeee* ejFd2d.f ZHeeeI ejFd3d.f ZJeee* ejFd4d.f ZKee1ejFd5d.f ZLeee* ejFd6d.f ZMeee-e*  ejFd7d.f ZNeee* ejFd8d.f ZOeee-e*  ejFd9d:d;d.f ZPeee-e*  ejFd<d=d>d.f ZQeee* ejFd?d@d.f ZReee* ejFdAd.f ZSdeTe*e*f fdBdCZU		dzdDee-e*  dEee* deTe*ee* f fdFdGZVdHeTe*ee* f dee-eTe*e*f   fdIdJZWG dKdL dLe*e
ZXeeXejFdMd.f ZYeeIejFdNdOdPd.f ZZdQe*de*fdRdSZ[dTede*fdUdVZ\e'fdTedWe1de*fdXdYZ]	dydZeeTe*ef  d[e-e* d\eeTe*ef ge-e* f d]eeTe*e*f  ddf
d^d_Z^	`			d{dZeeTe*ef  daeXdbeIdce*d[ee-e*  d\eeeTe*ef ge-e* f  d]eeTe*e*f  ddfdddeZ_dfe`de`fdgdhZadiedeTe*ef fdjdkZbdle-e* fdmdnZcdoedp ddfdqdrZddoedp ddfdsdtZede*fdudvZfde*fdwdxZgdS )|z*Contains CLI utilities (styling, helpers).    N)Enum)Path)	TYPE_CHECKING	AnnotatedAnyCallableLiteralOptionalSequenceUnioncast)__version__	constants)ANSIget_sessionhf_raise_for_statusinstallation_methodloggingtabulate)load_dotenv#   HfApitokenreturnr   c                 C   s   ddl m} || dtdS )Nr   r   zhuggingface-cli)r   Zlibrary_nameZlibrary_version)huggingface_hub.hf_apir   r   )r   r    r   X/home/kim/smarthome/.venv/lib/python3.10/site-packages/huggingface_hub/cli/_cli_utils.py
get_hf_api,   s   r   z9https://huggingface.co/docs/huggingface_hub/en/guides/cliexamplesdocs_anchorc                 C   s:   |rt  | nt }ddd | D }d| d| dS )a  Generate an epilog with examples and a Learn More section.

    Args:
        examples: List of example commands (without the `$ ` prefix).
        docs_anchor: Optional anchor for the docs URL (e.g., "#hf-download").

    Returns:
        Formatted epilog string.
    
c                 s   s    | ]}d | V  qdS )z  $ Nr   ).0exr   r   r   	<genexpr>C   s    z"generate_epilog.<locals>.<genexpr>z	Examples
zk

Learn more
  Use `hf <command> --help` for more information about a command.
  Read the documentation at )CLI_REFERENCE_URLjoin)r   r    Zdocs_urlZexamples_strr   r   r   generate_epilog8   s   
r'   )mainhelpepilogctx	formatterc                 C   s.   | r|   | dD ]	}|| qdS dS )z%Write the epilog without indentation.r!   N)Zwrite_paragraphsplit
write_text)r*   r+   r,   liner   r   r   _format_epilog_no_indentR   s   r0   z\s*\|\s*c                       s   e Zd ZdZdejdee def fddZ	e
dejdee ddfd	d
Ze
dejdee ddfddZdejdedeej f fddZdeeee f fddZdejdejddfddZdejdejddfddZdejdee fddZ  ZS )HFCliTyperGroupa  
    Typer Group that:
    - lists commands alphabetically within sections.
    - separates commands by topic (main, help, etc.).
    - formats epilog without extra indentation.
    - supports aliases via pipe-separated names (e.g. ``name="list | ls"``).
    - rewrites ``--json`` to ``--format json`` for commands that accept ``--format``.
    - rewrites ``spaces/user/repo`` to ``user/repo --type space`` for commands that accept ``--type``.
    r+   argsr   c                    s`   |r|d  ds|d nd }|r| ||nd }|d ur)| || | || t ||S )Nr   -)
startswithget_command_rewrite_json_shorthand_rewrite_repo_type_prefixsuperresolve_command)selfr+   r2   cmd_namecmd	__class__r   r   r9   h   s   zHFCliTyperGroup.resolve_commandr<   Nc                 C   sf   d|vrdS t dd | jD }|r1t dd |D r td|d}ddg|||d	 < dS dS )
a2  Rewrite hidden ``--json`` shorthand to ``--format json``.

        Only applies to commands that accept ``--format``.  This avoids rewriting
        ``--json`` for commands that pass args through to external binaries
        (e.g. ``hf extensions exec``) or that simply don't support ``--format``.
        z--jsonNc                 s   &    | ]}t |tjod |jv V  qdS )--formatN
isinstanceclickOptionoptsr"   paramr   r   r   r$   |      $ z:HFCliTyperGroup._rewrite_json_shorthand.<locals>.<genexpr>c                 s   s"    | ]}|d kp| dV  qdS )r@   z	--format=Nr4   r"   argr   r   r   r$   ~   s     z/'--json' and '--format' are mutually exclusive.r@   json   )anyparamsrC   
UsageErrorindex)r<   r2   Zhas_format_optionidxr   r   r   r6   r   s   

z'HFCliTyperGroup._rewrite_json_shorthandc                 C   s2  t dd | jD }|sdS t }d}| jD ]}t|tjr,|jdv r(|| |d7 }q|s1dS t }| jD ]}t|tjrS|j	sSg |j
|jR D ]}|| qKq7d}g }	d}
|
t|k r||
 }|dkrin.|drd	|v sv||vr{|
d7 }
n|
d
7 }
n||v r|	|
 |d7 }|
d7 }
|
t|k s`|	sdS d}d}g }|	D ]I}|| dd
}t|dks|d tjvrq|d }tj| }|dur||krtd| d| d|}|}|||d  d|d
  f q|sdS t dd |D rtd| d|D ]	\}}|||< q|d|g dS )u  Rewrite prefixed repo IDs (e.g. ``spaces/user/repo``) to ``user/repo --type space``.

        Only applies to commands that have a ``--type`` / ``--repo-type`` option and
        at least one repo-ID positional argument (any ``click.Argument`` whose name
        ends with ``_id``, e.g. ``repo_id``, ``from_id``, ``to_id``).  When the
        token that maps to such an argument matches ``{prefix}/org/repo`` (where
        *prefix* is one of ``spaces``, ``datasets``, or ``models``), the prefix is
        stripped and an implicit ``--type {type}`` is appended.  An error is raised
        if ``--type`` is also provided explicitly or if multiple prefixed arguments
        disagree on the repo type.

        Only repo-ID positional slots are inspected so that other positional
        arguments (filenames, local paths, patterns …) are never misinterpreted as
        prefixed repo IDs.
        c                 s   r?   )--typeNrA   rF   r   r   r   r$      rH   z<HFCliTyperGroup._rewrite_repo_type_prefix.<locals>.<genexpr>Nr   )Zrepo_idZfrom_idZto_idrM   z--r3   =   /   z!Conflicting repo type prefixes: 'z/' and 'z/'.c                 s   s4    | ]}|d kp| dp|dkp| dV  qdS )rS   z--type=--repo-typez--repo-type=NrI   rJ   r   r   r   r$      s
    "
z!Ambiguous repo type: got prefix 'z8/' in repo ID and explicit --type. Use one or the other.rS   )rN   rO   setrB   rC   ArgumentnameaddrD   Zis_flagrE   Zsecondary_optslenr4   appendr-   r   ZREPO_TYPES_MAPPINGrP   extend)r<   r2   Zhas_type_optionZrepo_id_positionsZarg_idxrG   Zvalue_optionsoptZpositional_countZrepo_id_arg_indicesirK   Zinferred_typeZfirst_prefixZrewritesZ	arg_indexpartsprefixZmapped_type	new_valuer   r   r   r7      s|   








"

z)HFCliTyperGroup._rewrite_repo_type_prefixr;   c                    sL   t  ||}|d ur|S | j D ]\}}t|}||v r#|  S qd S N)r8   r5   commandsitems_ALIAS_SPLITr-   )r:   r+   r;   r<   registered_nameZregistered_cmdaliasesr=   r   r   r5      s   
zHFCliTyperGroup.get_commandc                 C   s6   i }| j D ]}t|}|d }|dd ||< q|S )zBBuild a mapping from primary command name to its aliases (if any).r   rM   N)rf   rh   r-   )r:   resultri   rb   primaryr   r   r   
_alias_map   s   

zHFCliTyperGroup._alias_mapr,   c           
   	   C   s(  i }|   }| |D ];}| ||}|d u s|jrq|j|jd}||g }|r5| dd| d}t|dd}	|	|	g 
||f q|d ||d  W d    n1 s^w   Y  t| D ](}	|	dkrpqi||	  d |||	  W d    n1 sw   Y  qid S )	N)limitz	 [alias: , ]topicr(   zMain commandsz	 commands)rm   list_commandsr5   hiddenZget_short_help_strwidthgetr&   getattr
setdefaultr^   sectionwrite_dlsortedkeys
capitalize)
r:   r+   r,   ZtopicsZ	alias_mapr[   r<   	help_textrj   rq   r   r   r   format_commands   s.   zHFCliTyperGroup.format_commandsc                 C   s   g }|  |D ]}| ||}|d u s|jrqt|dg }|r&||d  q|r5t|}t||| d S | jrAt| j|| d S d S )Nr   r   )rr   r5   rs   rv   r^   r'   r0   r*   )r:   r+   r,   Zall_examplesr[   r<   Zcmd_examplesr*   r   r   r   format_epilog  s   zHFCliTyperGroup.format_epilogc                 C   s0   g }| j D ]}t|d }|| qt|S )Nr   )rf   rh   r-   r^   rz   )r:   r+   Zprimary_namesr[   rl   r   r   r   rr   #  s
   
zHFCliTyperGroup.list_commands)__name__
__module____qualname____doc__rC   Contextliststrtupler9   staticmethodCommandr6   r7   r	   r5   dictrm   HelpFormatterr~   r   rr   __classcell__r   r   r=   r   r1   ]   s     

"`	 r1   fallback_handlerextra_commands_providerc                    s   G  fdddt }|S )zRReturn a Typer group class that runs a fallback handler before command resolution.c                       sR   e Zd Zdejdee def fddZdejdej	ddf fdd	Z
  ZS )
z8fallback_typer_group_factory.<locals>.FallbackTyperGroupr+   r2   r   c                    s2   |t | j }|d urt|t ||S re   )rY   rf   r{   
SystemExitr8   r9   )r:   r+   r2   Zfallback_exit_code)r>   r   r   r   r9   3  s   zHfallback_typer_group_factory.<locals>.FallbackTyperGroup.resolve_commandr,   Nc                    sb   t  || d ur- }|r/|d || W d    d S 1 s&w   Y  d S d S d S )NzExtension commands)r8   r~   rx   ry   )r:   r+   r,   entries)r>   r   r   r   r~   9  s   "zHfallback_typer_group_factory.<locals>.FallbackTyperGroup.format_commands)r   r   r   rC   r   r   r   r   r9   r   r~   r   r   r   r   r=   r   FallbackTyperGroup2  s    "(r   )r1   )r   r   r   r   r   r   fallback_typer_group_factory,  s   r   rq   c                 C   sH   dt jdt jdt jdd fdd}td|   tjjf| |pg |dS )	Nr:   r+   r,   r   c                 S   s   t | j|| d S re   )r0   r*   )r:   r+   r,   r   r   r   r   E     z#HFCliCommand.<locals>.format_epilogTyperCommandrq   r   r   )	rC   r   r   r   typer|   typercorer   r   r   r   r   HFCliCommandD  s    r   c                "       s   e Zd ZdZ	dddddddddddddddee d	ed
eee  deeee	f  dee dee dee dede
de
de
de
dee deede	f gede	f f f fddZ  ZS )HFCliAppz&Custom Typer app for Hugging Face CLI.Nr(   z	[OPTIONS]TF)rq   r   context_settingsr)   r*   
short_helpoptions_metavaradd_help_optionno_args_is_helprs   
deprecatedrich_help_panelr[   rq   r   r   r)   r*   r   r   r   r   rs   r   r   r   .c                   sZ   d u r
r
t dtdtf dtdtf f 	
fdd}|S )Nfunc.r   c                    s2   t tjt
	d| S )N)clsr   r)   r*   r   r   r   r   rs   r   r   )r8   r   commandr   )r   )r>   r   r   r   r*   r   r)   rs   r[   r   r   r   r:   r   rq   r   r   _innerg  s    
z HFCliApp.command.<locals>._inner)r'   r   r   )r:   r[   rq   r   r   r)   r*   r   r   r   r   rs   r   r   r   r=   )r   r   r   r*   r   r)   rs   r[   r   r   r   r:   r   rq   r   r   R  s   BzHFCliApp.commandre   )r   r   r   r   r	   r   TOPIC_Tr   r   r   boolr   r   r   r   r   r=   r   r   O  sZ    
	
r   r)   r   c                 C   s0   |du rt }t| |dd|ddddddgdd	S )	a+  Create a Typer app with consistent settings.

    Args:
        help: Help text for the app.
        epilog: Optional epilog text (use `generate_epilog` to create one).
        cls: Optional Click group class to use (defaults to `HFCliTyperGroup`).

    Returns:
        A configured Typer app.
    NTFx   z-hz--help)Zmax_content_widthZhelp_option_names)	r)   r*   Zadd_completionr   r   Zrich_markup_moder   Zpretty_exceptions_enabler   )r1   r   )r)   r*   r   r   r   r   typer_factoryz  s   r   c                   @      e Zd ZdZdZdZdS )RepoTypemodeldatasetspaceN)r   r   r   r   r   r   r   r   r   r   r     s    r   zNThe ID of the repo (e.g. `username/repo-name` or `spaces/username/repo-name`).)r)   rS   rX   z2The type of repository (model, dataset, or space).zJA User Access Token generated from https://huggingface.co/settings/tokens.zfWhether to create a private repo if repo doesn't exist on the Hub. Ignored if the repo already exists.zDGit revision id which can be a branch name, a tag, or a commit hash.zLimit the number of results.z!Filter by author or organization.zHFilter by tags (e.g. 'text-classification'). Can be used multiple times.zSearch query.z-ez--envz/Set environment variables. E.g. --env ENV=valuez-sz	--secretszvSet secret environment variables. E.g. --secrets SECRET=value or `--secrets HF_TOKEN` to pass your Hugging Face token.z
--env-filez(Read in a file of environment variables.z/Read in a file of secret environment variables.c                  C   s0   ddl m}  tj }|   }dur||d< |S )zQReturn a copy of ``os.environ`` with the user's HF token injected (if available).r   )	get_tokenNZHF_TOKEN)huggingface_hubr   osenvironcopy)r   extended_environr   r   r   r   _get_extended_environ  s
   
r   envenv_filec                 C   sL   t  }i }|r|tt| |d | pg D ]}|t||d q|S )zParse ``-e``/``--env``/``-s``/``--secrets`` and ``--env-file``/``--secrets-file`` CLI args into a dict.

    Uses an extended environment that includes the user's HF token so that
    bare ``--secrets HF_TOKEN`` resolves correctly.
    )r   )r   updater   r   	read_text)r   r   r   env_mapZ	env_valuer   r   r   parse_env_map  s   	r   r   c                 C   s   | sdS dd |   D S )z_Convert an env/secrets dict to the ``[{"key": ..., "value": ...}]`` format used by the Hub API.Nc                 S   s   g | ]\}}||p
d dqS ) )keyvaluer   r"   kvr   r   r   
<listcomp>$  s    z-env_map_to_key_value_list.<locals>.<listcomp>rg   )r   r   r   r   env_map_to_key_value_list   s   r   c                   @   r   )OutputFormatz$Output format for CLI list commands.tablerL   N)r   r   r   r   r   rL   r   r   r   r   r   '  s    r   zOutput format (table or json).z-qz--quietzPrint only IDs (one per line).r[   c                 C   s   t dd| }| S )z\Convert a camelCase or PascalCase string to SCREAMING_SNAKE_CASE to be used as table header.z([a-z])([A-Z])z\1_\2)resubupper)r[   sr   r   r   
_to_header?  s   r   r   c                 C   s   | sdS t | tr| rdS dS t | tjr| dS t | tr+td| r+| dd S t | tr:ddd	 | D S t | t	rNd
| v rIt| d
 S t
| S t| S )z/Convert a value to string for terminal display.r   u   ✔z%Y-%m-%dz^\d{4}-\d{2}-\d{2}TN
   ro   c                 s   s    | ]}t |V  qd S re   )_format_value)r"   r   r   r   r   r$   P      z _format_value.<locals>.<genexpr>r[   )rB   r   datetimestrftimer   r   matchr   r&   r   rL   dumps)r   r   r   r   r   E  s   




r   max_lenc                 C   s,   t | }t||kr|d|d  d }|S )z/Format a value + truncate it for table display.NrW   z...)r   r]   )r   r   cellr   r   r   _format_cellY  s   r   rg   headersrow_fn
alignmentsc                    sr   | st d dS ttttttf    fdd| D }dd |D }dd |p)i  D }t t|||d dS )	ai  Print items as a formatted table.

    Args:
        items: Sequence of dictionaries representing the items to display.
        headers: List of column headers.
        row_fn: Function that takes an item dict and returns a list of string values for each column.
        alignments: Optional mapping of header name to "left" or "right". Defaults to "left".
    zNo results found.Nc                    s   g | ]} |qS r   r   r"   itemr   r   r   r   r      z"print_as_table.<locals>.<listcomp>c                 S      g | ]}t |qS r   r   )r"   hr   r   r   r   s  r   c                 S   s   i | ]	\}}t ||qS r   r   r   r   r   r   
<dictcomp>u      z"print_as_table.<locals>.<dictcomp>)r   r   )printr   r   r   r   intrg   r   )rg   r   r   r   rowsZscreaming_headersZscreaming_alignmentsr   r   r   print_as_tablea  s   (r   idformatquietid_keyc           	         s   |rD ]}t ||  qdS |tjkr"t tjtdtd dS  du r<r0td  n|g}fdd|D  |du rQdtttf dtt f fd	d
}t	 ||d dS )a`  Print list command output in the specified format.

    Args:
        items: Sequence of dictionaries representing the items to display.
        format: Output format (table or json).
        quiet: If True, print only IDs (one per line).
        id_key: Key to use for extracting IDs in quiet mode.
        headers: Optional list of column names for headers. If not provided, auto-detected from keys.
        row_fn: Optional function to extract row values. If not provided, uses _format_cell on each column.
        alignments: Optional mapping of header name to "left" or "right". Defaults to "left".
    NrU   )indentdefaultr   c                    s&   g | ] t  fd dD r qS )c                 3   s    | ]
}t | V  qd S re   r   ru   r   colr   r   r$     s    z/print_list_output.<locals>.<listcomp>.<genexpr>)rN   )r"   r   r   r   r     s   & z%print_list_output.<locals>.<listcomp>r   r   c                    s    fddD S )Nc                    s   g | ]	}t  |qS r   r   )r"   r   r   r   r   r     r   z5print_list_output.<locals>.row_fn.<locals>.<listcomp>r   r   )r   r   r   r     r   z!print_list_output.<locals>.row_fn)r   r   r   )
r   r   rL   r   r   r   r{   r   r   r   )	rg   r   r   r   r   r   r   r   Zall_columnsr   )r   rg   r   print_list_outputy  s   
"r   r   c                 C   sL   t | tjr
|  S t | trdd |  D S t | tr$dd | D S | S )z4Recursively serialize a value to be JSON-compatible.c                 S   "   i | ]\}}|d ur|t |qS re   _serialize_value)r"   r   valr   r   r   r        " z$_serialize_value.<locals>.<dictcomp>c                 S   r   r   r   r   r   r   r   r     r   z$_serialize_value.<locals>.<listcomp>)rB   r   	isoformatr   rg   r   )r   r   r   r   r     s   

r   infoc                 C   s   dd t |  D S )z9Convert repo info dataclasses to json-serializable dicts.c                 S   r   re   r   r   r   r   r   r     r   z&api_object_to_dict.<locals>.<dictcomp>)dataclassesasdictrg   )r   r   r   r   api_object_to_dict  s   r   valid_propertiesc                    s&   dt t dt tt  f fdd}|S )zJCreate a callback to parse and validate comma-separated expand properties.r   r   c              	      sR   | d u rd S dd |  dD }|D ]}| vr&td| dd  q|S )Nc                 S   s   g | ]}|  qS r   )strip)r"   pr   r   r   r     r   zSmake_expand_properties_parser.<locals>._parse_expand_properties.<locals>.<listcomp>,zInvalid expand property: 'z'. Valid values are: ro   )r-   r   ZBadParameterr&   )r   
propertiespropr   r   r   _parse_expand_properties  s   z?make_expand_properties_parser.<locals>._parse_expand_properties)r	   r   r   )r   r  r   r  r   make_expand_properties_parser  s   "r  library)r   Ztransformersc                 C   s2   zt |  W dS  ty   tjddd Y dS w )aB  
    Check whether a newer version of a library is available on PyPI.

    If a newer version is found, notify the user and suggest updating.
    If current version is a pre-release (e.g. `1.0.0.rc1`), or a dev version (e.g. `1.0.0.dev1`), no check is performed.

    This function is called at the entry point of the CLI. It only performs the check once every 24 hours, and any error
    during the check is caught and logged, to avoid breaking the CLI.

    Args:
        library: The library to check for updates. Currently supports "huggingface_hub" and "transformers".
    z$Error while checking for CLI update.T)exc_infoN)_check_cli_update	Exceptionloggerdebug)r  r   r   r   check_cli_update  s
   r  c                    s  t j|  t fdddD rd S tjtjr+tj	tj}t

 | dk r+d S ttjjjddd ttj  t jd|  dd	d
}t| | }|d d } |kr| dkrct }nt }ttd|  d| d  dt| d	 d S d S )Nc                 3   s    | ]}| v V  qd S re   r   )r"   tagcurrent_versionr   r   r$     r   z$_check_cli_update.<locals>.<genexpr>)rcdeviQ T)parentsexist_okzhttps://pypi.org/pypi/z/jsonrU   )timeoutr   versionr   zA new version of z (z&) is available! You are using version z.
To update, run: r!   )	importlibmetadatar  rN   r   pathexistsr   ZCHECK_FOR_UPDATE_DONE_PATHgetmtimetimer   parentmkdirtouchr   ru   r   rL   #_get_huggingface_hub_update_command _get_transformers_update_commandrC   Zechor   yellowbold)r  mtimeresponsedataZlatest_versionZupdate_commandr   r  r   r    s6   r  c                  C   s8   t  } | dkr	dS | dkrtjdkrdS | dkrdS dS )z-Return the command to update huggingface_hub.Zbrewzbrew upgrade hfhf_installerntzNpowershell -NoProfile -Command "iwr -useb https://hf.co/cli/install.ps1 | iex"z0curl -LsSf https://hf.co/cli/install.sh | bash -zpip install -U huggingface_hubr   r   r[   methodr   r   r   r    s   r  c                  C   s,   t  } | dkrtjdkrdS | dkrdS dS )z*Return the command to update transformers.r%  r&  z`powershell -NoProfile -Command "iwr -useb https://hf.co/cli/install.ps1 | iex" -WithTransformerszHcurl -LsSf https://hf.co/cli/install.sh | bash -s -- --with-transformerszpip install -U transformersr'  r(  r   r   r   r    s   r  re   )NN)r   NNN)hr   r   r   importlib.metadatar  rL   r   r   r  enumr   pathlibr   typingr   r   r   r   r   r	   r
   r   r   rC   r   r   r   r   Zhuggingface_hub.utilsr   r   r   r   r   r   Zhuggingface_hub.utils._dotenvr   Z
get_loggerr	  Z_MAX_CELL_LENGTHr   r   r   r   r%   r   r'   r   rY   r   ZFallbackHandlerTr   r   r0   compilerh   r   Z
TyperGroupr1   r   r   r   r   r   ZTyperr   r   r   rZ   Z	RepoIdArgrD   ZRepoTypeOptZTokenOptr   Z
PrivateOptZRevisionOptZLimitOptZ	AuthorOptZ	FilterOptZ	SearchOptZEnvOptZ
SecretsOptZ
EnvFileOptZSecretsFileOptr   r   r   r   r   Z	FormatOptZQuietOptr   r   r   r   r   objectr   r   r  r  r  r  r  r   r   r   r   <module>   s  , 	 "
 R
(,
!	





	


.



)'