HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/shortuuid/__pycache__/cli.cpython-39.pyc
a

�,�h��@s�ddlZddlZddlmZddlmZddlmZddlmZddlmZej	d�d	d
�Z
ej	d�dd�Zedd
�dd�Ze
dkr�eejdd��dS)�N)�Any)�UUID�)�decode)�encode)�uuid��argscCstt|j��dS)N)�printrrr�r�>/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/shortuuid/cli.py�
encode_clisr
cCsttt|j|jd���dS)N)�legacy)r
�strr�	shortuuidrrrrr�
decode_clisr)r	�returncGs�tjddd�}|jdd�}|jddtjd�}|jd	td
d�|jt	d�|jd
dt
jd�}|jdtdd�|jddd�|jtd�|j
|�}t|d�r�|�|�n
tt��dS)Nz&Generate, encode and decode shortuuidsz.top-level command generates a random shortuuid)�description�epilogzsub-command help)�helprzEncode a UUID into a short UUID)rrrzUUID to be encoded)�typer)�funcrzDecode a short UUID into a UUIDrzShort UUID to be decodedz--legacy�
store_true)�actionr)�argparse�ArgumentParser�add_subparsers�
add_parserr�__doc__�add_argumentr�set_defaultsr
rrr�
parse_args�hasattrrr
r)r	�parserZ
subparsersZ
encode_parserZ
decode_parserZpassed_argsrrr�clis(���

r$�__main__)r�sys�typingrrr�mainrr�	Namespacer
rr$�__name__�argvrrrr�<module>s