+
    i   c                   s    R t Rt^ RIt^ RIt^ RIt^ RIHt ^ RIHt Rt	Rt
]P                  ! ]
]	4       R t]t ! R R	4      tR# )
zu
This module houses the i18n setup and message function. The default is to use
gettext to internationalize messages.
z4.11.0N)ArgumentParser)SosListOptionz/usr/share/localesosc                 s8    \         P                  ! \        V 4      # N)gettextZdgettextgettext_app)msg   &1/usr/lib/python3.14/site-packages/sos/__init__.py_defaultr	      s    K--    c                   s<   a  ] tR t^&t o RtR tR tR tR tRt	V t
R# )SoSa>  Main 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           	     s2   Wn         ^ RIp^ RIp^ RIp^ RIpRVP
                  P                  R.3RVP                  P                  RR.3RVP                  P                  . 3RVP                  P                  . 3/V n         ^ RIpVP                  P                   R	.3V P                  R
&   RpT P                  P1                  4        FT  w  rVT^,          pTP3                  ^ T4       RP5                  T4      pT^ ,          P6                  p	TRTR T	 R2,          pKV  	  Rp
Y,           p
Rp\9        YR7      T n        T P:                  P=                  RR\>        4       T P:                  PA                  RRRR7      T n!        RT PB                  n"        T P                  P1                  4        F  w  rT PB                  PG                  TT^,          RT 2R7      pRT R2Tn$        TP=                  RR\>        4       T PK                  T4       T^ ,          PM                  TR7       TPO                  TR7       K  	  T P:                  PQ                  T P                   4      T n)        T PU                  4        R#   \"         d   p^ RIpR\'        TP(                  4      9   d,   TP*                  P,                  . 3T P                  R
&    Rp?ELR\'        TP(                  4      9   d,   TP*                  P.                  . 3T P                  R
&    Rp?ELdh Rp?ii ; i) i    NreportZrepZcleancleanerZmaskhelpupload	collectorZcollectzsos.collectorZpexpectZ z, Z	z<30Z
z6%(prog)s <component> [options]

Available components:
z1See `sos <component> --help` for more information)usageepilogactionZextend	componentzsos component to run)destZmetavarr   Tzsos )aliasesZprogz
 [options])parser)r   )+cmdlineZ
sos.reportZsos.cleanerZsos.helpZ
sos.uploadr   Z	SoSReportr   Z
SoSCleanerr   Z	SoSHelperr   Z	SoSUpload_componentsZsos.collectorr   ZSoSCollectorZModuleNotFoundErrorZsos.missingstrr   ZmissingZMissingCollectZMissingPexpectZitemsZinsertZjoindescr    r   Zregisterr   Zadd_subparsers
subparsersZrequiredZ
add_parserr   _add_common_optionsZadd_parser_optionsZset_defaultsZ
parse_argsargs_init_component)selfr   r   errZ_com_stringZcomZvaluer   _comr   Zusage_stringr   ZcompZ_com_subparsers   &&            r   __init__ZSoS.__init__/   s    	szz++eW5ckk,,y&.ABSXX'',szz++R0	
	 +.==+E+E,7=+:DY' **002JCAhGNN1c"99W%D8==Dbc
4&34K 32#1D$<GXx?++44' 5 

 $(   ++113KD!__77aD6] 8 N
 &*$z#:N ##HhF$$^4!H''~'>''$'7 4 KK**4<<8	_ # 
	#cgg,./2{{/I/I2.N  +c#''l*/2{{/I/I2.N  + 
	s%   *I7 7LAL?LLLc           
     sf   VP                  R4      pVP                  RRRRR7       VP                  R\        RR	R
RR7       VP                  RRRRR7       VP                  RRRRRRR7       VP                  RRRRRRR7       VP                  RRRRRR7       VP                  RRRR ^\        R!R"7       VP                  R#R$R%R&^ R'R7       VP                  R(R)R*. R4OR+R,7       VP	                  4       pVP                  R-RRR.R7       VP                  R/R0R17       VP                  R2R3R17       R# )5z@Adds the options shared across components to the parser
        zGlobal Optionsz--batchFZ
store_truezDo not prompt interactively)defaultr   r   z--config-fileZstoreZconfig_filez/etc/sos/sos.confz$specify alternate configuration file)typer   r   r$   r   z--debugdebugz6enable interactive debugging using the python debugger)r   r   r   z-qz--quietZquietzonly print fatal errors)r   r   r$   r   z-sz	--sysrootZsysrootNz!system rootdir path (default='/')z	--tmp-dirZtmp_dirz%specify alternate temporary directoryz-tz	--threadsZthreadszNumber of threads to use)r   r   r$   r%   r   z-vz	--verboseZcountZ	verbosityzincrease verbosityz-zz--compression-typeZcompression_typezcompression technology to use)r   Zchoicesr   z	--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)r   z--encrypt-passz$Encrypt the archive using a password)ZautoZgzipZxzZnone)Zadd_argument_groupZadd_argumentr   ZintZadd_mutually_exclusive_group)r    r   Z
global_grpZencrypt_grps   &&  r   r   ZSoS._add_common_optionsx   s    ../?@
	5%B 	  	Dc'%2(;%K 	  	M 		,W&7 	  	8 	i%,e%> 	  	@ 	k'%.%H 	  	J 	G)(,%L 	  	N 	k'%.%? 	  	A 	k'%0!%9 	  	; 	&:%7)1%D	 	  	F !==?  e(4(A 	! 	C
 	  '1 	! 	2 	  !1&L 	! 	Nr
   c                s*   V P                   P                  pWP                  9  d   \        RV R24        V P                  V,          ^ ,          pVP                  '       d&   \
        P                  ! 4       ^ 8X  g   \        R4      hV! V P                  V P                   V P                  4      V n
        R#   \         dQ   p\        RT RT 24       T P                   P                  '       d   Th\        P                  ! ^4        Rp?R# Rp?ii ; i)z^Determine which component has been requested by the user, and then
initialize that component.
zUnknown subcommand 'z' specifiedz*Component must be run with root privilegeszCould not initialize 'z': N)r   r   r   ZprintZroot_requiredosZgetuidZ	Exceptionr   r   
_componentr&   sysZexit)r    r"   Z_to_loadr!   s   &   r   r   ZSoS._init_component   s     yy""'''(k:;
	''-a0H%%%biikQ.> LMM&t{{DIIt||LDO 	*4&C59:yy	HHQKK		s   +B7 #AB7 7DADDc                s:    V P                   P                  4        R # r   )r(   execute)r    r   r   r*   ZSoS.execute   s    !r
   )r(   r   r   r   r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__r#   r   r   r*   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r   &   s'     GR.N`&" "r
   r   )r+   Z__version__r'   r)   r   Zargparser    Zsos.optionsr   Zgettext_dirr   Zbindtextdomainr	   Z_sosr   ) r
   r   <module>r,      sR     	 
  # %!   {K 0. V" V"r
   