%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/main.cpython-312.pyc

�

�I�d���R�dZddlmZddlmZGd�de�ZGd�de�Zd�Z	y	)
z+The main samba-tool command implementation.�)�getopt)�SuperCommandc�$�eZdZdZd�Zdd�Zd�Zy)�cache_loaderz�
    We only load subcommand tools if they are actually used.
    This significantly reduces the amount of time spent starting up
    samba-tool
    c���tj||�}|�2|dk(rdn|}ttd|zd|zg��d|z��||<tj||�S)N�time�nettimezsamba.netcmd.%szcmd_%s)�fromlist)�dict�__getitem__�getattr�
__import__)�self�attr�item�packages    �3/usr/lib/python3/dist-packages/samba/netcmd/main.pyrzcache_loader.__getitem__ss������d�+���<�#'�6�>�i�t�G�2���,=��,G�6>��o�5F�"H�!)�D��2�4�D��J�����d�+�+�Nc�0�	||S#t$r|cYSwxYw�N)�KeyError)rr�defaults   r�getzcache_loader.get(s%��	���:����	��N�	�s���c#�,K�|D]}|||f���
y�wr�)r�keys  r�itemszcache_loader.items.s$�����	#�C���S�	�"�"�	#�s�r)�__name__�
__module__�__qualname__�__doc__rrrrrrrrs���
,��#rrc�*�eZdZdZdej
iZe�Zded<ded<ded<ded<ded<ded	<ded
<ded<ded<ded
<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<y)�
cmd_sambatoolzMain samba administration tool.�versionoptsN�computer�contact�dbcheck�
delegation�dns�domain�drs�dsacl�forest�fsmo�gpo�group�ldapcmp�ntacl�rodc�schema�sites�spn�testparmr�user�ou�	processes�	visualize)	rrr r!�options�VersionOptions�takes_optiongroupsr�subcommandsrrrr#r#3s��)�	�w�-�-����.�K�"�K�
��!�K�	��!�K�	�� $�K����K��� �K����K����K��� �K����K����K����K���!�K�	���K����K��� �K����K����K���"�K�
���K����K����K���#�K���#�K��rr#c��	t�jdg|��i|��\}}|j|�}|S#t$r}|j}Yd}~|Sd}~wt
$r}j
|�d}Yd}~|Sd}~wwxYw)zbA single function that runs samba-tool, returning an error code on
    error, and None on success.z
samba-toolN�)r#�_resolve�_run�
SystemExit�code�	Exception�show_command_error)�args�kwargs�cmd�argv�ret�es      r�
samba_toolrNVs����,�M�O�,�,�\�K�D�K�F�K�	��T��c�h�h��o���J�����f�f���J�������q�!����J���s �04�	A9�A�A9�A4�4A9N)
r!�sambarr<�samba.netcmdrrrr#rNrrr�<module>rQs.��$2�#�%�#�4�#�4 $�L� $�Fr

Zerion Mini Shell 1.0