o
    Û1ja  ã                   @   s*   d dl mZmZmZ G dd„ deeƒZdS )é    )ÚPluginÚRedHatPluginÚ	PluginOptc                   @   s@   e Zd ZdZdZdZdZedddd�gZd	Z	d
d„ Z
dd„ ZdS )ÚCommandLineAssistantz!Lightspeed Command Line AssistantÚcommand_line_assistant)Úai)ÚcladÚ	historydbFzcollect the history database)ÚdefaultÚdescz+/etc/xdg/command-line-assistant/config.tomlc                 C   s,   |   | jdg¡ |  d¡r|   d¡ d S d S )Nz#/etc/systemd/system/clad.service.d/r	   z*/var/lib/command-line-assistant/history.db)Úadd_copy_specÚconfig_fileÚ
get_option©Úself© r   úK/usr/lib/python3/dist-packages/sos/report/plugins/command_line_assistant.pyÚsetup   s   þ
ÿÿzCommandLineAssistant.setupc                 C   s   |   | jdd¡ d S )Nz(password\s+=\s+)(\S+)z\1********\n)Údo_path_regex_subr   r   r   r   r   Úpostproc(   s   þzCommandLineAssistant.postprocN)Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚservicesr   Úoption_listr   r   r   r   r   r   r   r      s    ÿÿr   N)Úsos.report.pluginsr   r   r   r   r   r   r   r   Ú<module>   s   
