a
    I_N
                     @   s@   d Z ddlmZ ddlmZ G dd deZG dd deZdS )	z+The main samba-tool command implementation.    )getopt)SuperCommandc                   @   s*   e Zd ZdZdd Zd	ddZdd ZdS )
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                 C   sV   t | |}|d u rJ|dkr dn|}ttd| d| gdd|  | |< t | |S )NtimeZnettimezsamba.netcmd.%szcmd_%s)fromlist)dict__getitem__getattr
__import__)selfattritempackage r   3/usr/lib/python3/dist-packages/samba/netcmd/main.pyr      s    

zcache_loader.__getitem__Nc                 C   s&   z
| | W S  t y    | Y S 0 d S N)KeyError)r   r   defaultr   r   r   get(   s    
zcache_loader.getc                 c   s   | D ]}|| | fV  qd S r   r   )r   keyr   r   r   items.   s    zcache_loader.items)N)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s   	
r   c                   @   s   e Zd ZdZdejiZe Zded< ded< ded< ded< ded< ded	< ded
< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< ded< dS )cmd_sambatoolzMain samba administration tool.ZversionoptsNZcomputerZcontactZdbcheckZ
delegationZdnsZdomainZdrsZdsaclZforestZfsmoZgpogroupZldapcmpZntaclZrodcZschemaZsitesZspnZtestparmr   userZouZ	processesZ	visualize)	r   r   r   r   optionsZVersionOptionsZtakes_optiongroupsr   Zsubcommandsr   r   r   r   r   3   s8   r   N)	r   Zsambar   r   Zsamba.netcmdr   r   r   r   r   r   r   r   <module>   s   