HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/__pycache__/__init__.cpython-39.pyc
a

\��hg �@sjdZdZddlZddlZddlZddlmZddlmZdZ	dZ
e�e
e	�dd	�ZeZ
Gd
d�d�ZdS)zu
This module houses the i18n setup and message function. The default is to use
gettext to internationalize messages.
z4.10.0�N)�ArgumentParser)�
SosListOptionz/usr/share/locale�soscCst�t|�S�N)�gettext�dgettext�gettext_app)�msg�r
�0/usr/lib/python3.9/site-packages/sos/__init__.py�_defaultsrc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�SoSaRMain entrypoint for sos from the command line

    Upon intialization, this class loads the basic option parser which will
    include the options shared by support components/subcommands. This is also
    where all subcommands present in the local installation are discovered,
    loaded, and if a matching one is found, intialized.
    c
Cs ||_ddl}ddl}ddl}ddl}|jjdgf|jjddgf|j	j
gf|jjgfd�|_
z ddl}|jjdgf|j
d<Wnrty�}zZddl}dt|j�vr�|jjgf|j
d<n$d	t|j�vr�|jjgf|j
d<n�WYd}~n
d}~00d
}|j
��D]F\}}|d}|�d|�d�|�}|dj}	|d
|d�|	�d�7}q�d}
|
|}
d}t|
|d�|_|j�ddt�|jj dddd�|_!d|j!_"|j
��D]h\}}|j!j#||dd|��d�}
d|�d�|
_$|
�ddt�|�%|
�|dj&|
d�|
j'|d��q�|j�(|j�|_)|�*�dS)NrZrep�cleaner�mask)�reportZclean�help�upload�	collectorZcollectz
sos.collectorZpexpect��z, �	z<30�
z6%(prog)s <component> [options]

Available components:
z1See `sos <component> --help` for more information)�usage�epilog�action�extend�	componentzsos component to run)�dest�metavarrTzsos )�aliases�progz
 [options])�parser)r)+�cmdlineZ
sos.reportZsos.cleanerZsos.helpZ
sos.uploadrZ	SoSReportrZ
SoSCleanerrZ	SoSHelperrZ	SoSUpload�_componentsZ
sos.collectorrZSoSCollector�ModuleNotFoundErrorZsos.missing�strr	�missingZMissingCollectZMissingPexpect�items�insert�join�descrr!�registerr�add_subparsersZ
subparsers�required�
add_parserr�_add_common_optionsZadd_parser_options�set_defaults�
parse_args�args�_init_component)�selfr2r�errZ_com_stringZcom�valuer�_comr*Zusage_stringr�compZ_com_subparserr
r
r�__init__/sj

�	�

��
zSoS.__init__c	Cs|�d�}|jddddd�|jdtdd	d
dd�|jd
dddd�|jddddddd�|jddddddd�|jdddddd�|jdddd d!td"d#�|jd$d%d&d'd(d)d�|jd*d+d,gd-�d.d/�|��}|jd0ddd1d�|jd2d3d4�|jd5d6d4�dS)7z@Adds the options shared across components to the parser
        zGlobal Optionsz--batchF�
store_truezDo not prompt interactively)�defaultrrz
--config-file�storeZconfig_filez/etc/sos/sos.confz$specify alternate configuration file)�typerrr;rz--debug�debugz6enable interactive debugging using the python debugger)rrrz-qz--quiet�quietzonly print fatal errors)rrr;rz-sz	--sysrootZsysrootNz!system rootdir path (default='/')z	--tmp-dirZtmp_dirz%specify alternate temporary directoryz-tz	--threads�threads�zNumber of threads to use)rrr;r=rz-vz	--verbose�count�	verbosityrzincrease verbosityz-zz--compression-typeZcompression_type)�auto�gzip�xzzcompression technology to use)r�choicesrz	--encryptz_Encrypt the archive, either prompting for a password/key or referencing an environment variablez
--encrypt-keyz(Encrypt the archive using a GPG key-pair)rz--encrypt-passz$Encrypt the archive using a password)�add_argument_group�add_argumentr%�int�add_mutually_exclusive_group)r4r!Z
global_grpZencrypt_grpr
r
rr/xs`

�
�
�
�
�
�
�
�����zSoS._add_common_optionsc
Cs�|jj}||jvr"td|�d��z@|j|d}|jrLt��dksLtd��||j|j|j	�|_
WnNty�}z6td|�d|���|jjr�|�t�
d�WYd}~n
d}~00dS)	znDetermine which component has been requested by the user, and then
        initialize that component.
        zUnknown subcommand 'z' specifiedrz*Component must be run with root privilegeszCould not initialize 'z': rN)r2rr#�printZ
root_required�os�getuid�	Exceptionr!r"�
_componentr>�sys�exit)r4r7Z_to_loadr5r
r
rr3�s
zSoS._init_componentcCs|j��dSr)rP�execute)r4r
r
rrS�szSoS.executeN)�__name__�
__module__�__qualname__�__doc__r9r/r3rSr
r
r
rr
&s
I/r
)rW�__version__rMrQr�argparserZsos.optionsrZgettext_dirr�bindtextdomainrZ_sosr
r
r
r
r�<module>
s