/var/opt/nydus/ops/shortuuid/__pycache__
Edit: /var/opt/nydus/ops/shortuuid/__pycache__/cli.cpython-312.pyc (2553B)
Mj d dl Z d dlZd dlmZ d dlmZ ddlmZ ddlmZ ddlmZ de j fd Z
de j fd
ZdeddfdZe
d
k( r eej dd yy) N)Any)UUID )decode)encode)uuidargsc @ t t | j y )N)printr r r s >/opt/nydus/tmp/pip-target-a90h98xg/lib/python/shortuuid/cli.py
encode_clir s &
c j t t t | j | j y )N)legacy)r strr shortuuidr r s r
decode_clir s #fT^^DKK8
9:r returnc < t j dd }|j d }|j ddt j
}|j
d t d
|j t |j d
dt j
}|j
dt d |j
dd |j t |j | }t |d r|j | y t! t# y )Nz&Generate, encode and decode shortuuidsz.top-level command generates a random shortuuid)descriptionepilogzsub-command help)helpr zEncode a UUID into a short UUID)r r r zUUID to be encoded)typer )funcr zDecode a short UUID into a UUIDr zShort UUID to be decodedz--legacy
store_true)actionr )argparseArgumentParseradd_subparsers
add_parserr __doc__add_argumentr set_defaultsr r r r
parse_argshasattrr r r )r parser
subparsers
encode_parser
decode_parserpassed_argss r
clir, s
$
$<?F
&&,>&?J))8fnn * M vD7KLJ/))8fnn * M {;UVz,?J/#&##T*K{F#% df
r __main__)r systypingr r r mainr r Namespacer r r, __name__argv r r
r5 sr
X'' ;X'' ;s t <