o
    (f                     @   s   d dl mZmZmZ d dlmZmZ d dlmZ d dl	m
Z
 d dlmZ e ZejdefddZe
d	ejejeejd
ZdS )    )event_logger
exceptionsmessages)FullAutoAttachOptions_full_auto_attach)cli_util)
ProCommand)HelpCategoryreturnc                K   sL   zt t |tjjd W n tjy   tt	j
j Y dS w t| dS )N)cfgmode   r   )r   r   r   EventLoggerModeCLIr   ConnectivityErroreventinfor   E_ATTACH_FAILUREmsgr   post_cli_attach)argsr   kwargs r   :/usr/lib/python3/dist-packages/uaclient/cli/auto_attach.pyaction_auto_attach   s   

r   zauto-attach)helpdescriptionactionhelp_categoryN)uaclientr   r   r   2uaclient.api.u.pro.attach.auto.full_auto_attach.v1r   r   uaclient.clir   uaclient.cli.commandsr   uaclient.cli.parserr	   get_event_loggerr   assert_rootintr   CLI_ROOT_AUTO_ATTACHCLI_AUTO_ATTACH_DESCOTHERauto_attach_commandr   r   r   r   <module>   s    
