
    Mia	                    f    S r SSKJr  SSKrSSKrSSS jjrSSS jjr\S:X  a  \" \" 5       5      eg)	z/Command-line interface for :mod:`unstructured`.    )annotationsNc                ^   SSK JnJnJn  [        R
                  " SSS9nUR                  SSSS	S
9  UR                  SSSSS
9  UR                  U 5      nUR                  (       a*  UR                  (       a  [        S[        R                  S9  gUR                  (       a[   U" UR                  5      nUR                  (       a$  [        SR!                  UR                  5      5        UR"                  (       d  ggUR                  (       aZ  U" UR                  5      nUR                  (       a$  [        SR!                  UR                  5      5        UR"                  (       d  gg[        U" 5       SS9  g! [         a+  n[        [        U5      [        R                  S9   S nAgS nAff = f)Nr   )build_reportevaluate_specifierfile_path_to_capabilityzunstructured doctorz=Print dependency and capability diagnostics for partitioning.progdescriptionz--forfor_capTYPEzICheck readiness for a file type or family (e.g. pdf, docx, image, audio).)destmetavarhelpz--file	file_pathPATHz<Infer file type from PATH and check readiness for that type.z%Use either --for or --file, not both.file   
    )end)unstructured.doctorr   r   r   argparseArgumentParseradd_argument
parse_argsr   r   printsysstderr
ValueErrorstrmessagesjoinready)argvr   r   r   parsernsresultes           j/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/unstructured/cli.py_cmd_doctorr,   	   sJ   ]]$$"SF X	   K	   
		4	 B	zzbll5CJJG	zz	'

3F ??$))FOO,-||	||(6??$))FOO,-||	,.b!%  	#a&szz*	s   "E7 7
F,!F''F,c                F   [        U c  [        R                  SS OU 5      n U (       a	  U S   S;   a9  [        R                  " SSS9nUR                  SS	S
/SS9  UR                  5         gU S   S
:X  a  [        U SS 5      $ [        SU S   < S3[        R                  S9  g)z4Entry point for the ``unstructured`` console script.Nr   r   )z-hz--helpunstructuredz+Unstructured document processing utilities.r   command?doctorzSubcommand to run.)nargschoicesr   zunstructured: unknown command z. Try `unstructured --help`.r   r   )
listr   r&   r   r   r   
print_helpr,   r   r    )r&   r'   s     r+   mainr6   :   s    $7D47..((E
 	J%	 	 	
 	Aw(48$$	
(a3OPZZ     __main__)N)r&   zlist[str] | Nonereturnint)	__doc__
__future__r   r   r   r,   r6   __name__
SystemExit r7   r+   <module>r@      s8    5 "  
.b8 z
TV
 r7   