grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026§ G@K©Ø¿ãób—dZddlZddlZdgZdZejejzdzZGd„d¦«ZdS)a A generic class to build line-oriented command interpreters. Interpreters constructed with this class obey the following conventions: 1. End of file on input is processed as the command 'EOF'. 2. A command is parsed out of each line by collecting the prefix composed of characters in the identchars member. 3. A command `foo' is dispatched to a method 'do_foo()'; the do_ method is passed a single argument consisting of the remainder of the line. 4. Typing an empty line repeats the last command. (Actually, it calls the method `emptyline', which may be overridden in a subclass.) 5. There is a predefined `help' method. Given an argument `topic', it calls the command `help_topic'. With no arguments, it lists all topics with defined help_ functions, broken into up to three topics; documented commands, miscellaneous help topics, and undocumented commands. 6. The command '?' is a synonym for `help'. The command '!' is a synonym for `shell', if a do_shell method exists. 7. If completion is enabled, completing commands will be done automatically, and completing of commands args is done by calling complete_foo() with arguments text, line, begidx, endidx. text is string we are matching against, all returned matches must begin with it. line is the current input line (lstripped), begidx and endidx are the beginning and end indexes of the text being matched, which could be used to provide different completion depending upon which position the argument is in. The `default' method may be overridden to intercept commands for which there is no do_ method. The `completedefault' method may be overridden to intercept completions for commands that have no complete_ method. The data member `self.ruler' sets the character used to draw separator lines in the help messages. If empty, no ruler line is drawn. It defaults to "=". If the value of `self.intro' is nonempty when the cmdloop method is called, it is printed out on interpreter startup. This value may be overridden via an optional argument to the cmdloop() method. The data members `self.doc_header', `self.misc_header', and `self.undoc_header' set the headers used for the help function's listings of documented functions, miscellaneous topics, and undocumented functions respectively. éNÚCmdz(Cmd) Ú_có°—eZdZdZeZeZdZdZ dZ dZ dZ dZ dZdZd Zdd „Zdd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d d„Z"dS)!raA simple framework for writing line-oriented command interpreters. These are often useful for test harnesses, administrative tools, and prototypes that will later be wrapped in a more sophisticated interface. A Cmd instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate Cmd itself; rather, it's useful as a superclass of an interpreter class you define yourself in order to inherit Cmd's methods and encapsulate action methods. ú=ÚNz(Documented commands (type help ):zMiscellaneous help topics:zUndocumented commands:z*** No help on %séÚtabcóŽ—|�||_ntj|_|�||_ntj|_g|_||_dS)aÐInstantiate a line-oriented interpreter framework. The optional argument 'completekey' is the readline name of a completion key; it defaults to the Tab key. If completekey is not None and the readline module is available, command completion is done automatically. The optional arguments stdin and stdout specify alternate input and output file objects; if not specified, sys.stdin and sys.stdout are used. N)ÚstdinÚsysÚstdoutÚcmdqueueÚ completekey)Úselfrr r s ú*/opt/alt/python311/lib64/python3.11/cmd.pyÚ__init__z Cmd.__init__LsI€ð Р؈DŒJˆJ圈DŒJØ Ð Ø ˆDŒKˆKåœ*ˆDŒK؈Œ Ø&ˆÔÐÐócóì—| ¦«|jrm|jrf ddl}| ¦«|_| |j¦«| |jdz¦«n#t$rYnwxYw |�||_ |j r/|j   t|j ¦«dz¦«d}|�s |jr|j d¦«}n§|jr( t!|j¦«}nŠ#t$$rd}Yn|wxYw|j   |j¦«|j  ¦«|j ¦«}t+|¦«sd}n| d¦«}| |¦«}| |¦«}| ||¦«}|�¯ | ¦«|jr9|jr4 ddl}| |j¦«dS#t$rYdSwxYwdSdS#|jr7|jr1 ddl}| |j¦«w#t$rYwwxYwwwxYw)zÆRepeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument. rNz : completeú ÚEOFz )ÚpreloopÚ use_rawinputrÚreadlineÚ get_completerÚ old_completerÚ set_completerÚcompleteÚparse_and_bindÚ ImportErrorÚintror ÚwriteÚstrrÚpopÚinputÚpromptÚEOFErrorÚflushr ÚlenÚrstripÚprecmdÚonecmdÚpostcmdÚpostloop)rr rÚstopÚlines rÚcmdloopz Cmd.cmdloopbsä€ð � Š ‰ŒˆØ Ô ð  Ô!1ð ð Ø���Ø%-×%;Ò%;Ñ%=Ô%=�Ô"Ø×&Ò& t¤}Ñ5Ô5Ð5Ø×'Ò'¨Ô(8¸Ñ(EÑFÔFÐFÐFøÝð ð ð Ø�ð øøøð! ØÐ Ø"�” ØŒzð 8Ø” ×!Ò!¥# d¤j¡/¤/°$Ñ"6Ñ7Ô7Ð7؈DØñ 0Ø”=ð7Øœ=×,Ò,¨QÑ/Ô/�D�DàÔ(ð 7ð)Ý#(¨¬Ñ#5Ô#5˜D˜DøÝ'ð)ð)ð)Ø#(˜D˜D˜Dð)øøøðœ ×)Ò)¨$¬+Ñ6Ô6Ð6Øœ ×)Ò)Ñ+Ô+Ð+Ø#œz×2Ò2Ñ4Ô4˜Ý" 4™yœyð7Ø#(˜D˜Dà#'§;¢;¨vÑ#6Ô#6˜DØ—{’{ 4Ñ(Ô(�Ø—{’{ 4Ñ(Ô(�Ø—|’| D¨$Ñ/Ô/�ð'ñ 0ð( �MŠM‰OŒOˆOàÔ ð  TÔ%5ð ðØ#�O�O�OØ×*Ò*¨4Ô+=Ñ>Ô>Ð>Ð>Ð>øÝ"ðððØ�D�Dðøøøð  ð ð ð øˆtÔ ð  TÔ%5ð ðØ#�O�O�OØ×*Ò*¨4Ô+=Ñ>Ô>Ð>Ð>øÝ"ðððØ�Dðøøøð  ð øøøsz¤AA9Á9 BÂB A-H2Ã8D Ä H2Ä DÄH2ÄDÄCH2Ç=HÈ H+È*H+È2I3ÉI!É I3É! I.É+I3É-I.É.I3có—|S)z‡Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued. ©©rr/s rr*z Cmd.precmd–s €ð ˆ rcó—|S)z?Hook method executed just after a command dispatch is finished.r2)rr.r/s rr,z Cmd.postcmd�s€àˆ rcó—dS)z>Hook method executed once when the cmdloop() method is called.Nr2©rs rrz Cmd.preloop¡s€à ˆrcó—dS)zYHook method executed once when the cmdloop() method is about to return. Nr2r6s rr-z Cmd.postloop¥s €ð ˆrcó —| ¦«}|sdd|fS|ddkrd|dd…z}n/|ddkr#t|d¦«rd|dd…z}ndd|fSdt|¦«}}||kr)|||jvr|dz}||kr|||jv°|d|…||d… ¦«}}|||fS) zÖParse the line into a command name and a string containing the arguments. Returns a tuple containing (command, args, line). 'command' and 'args' may be None if the line couldn't be parsed. Nrú?zhelp rú!Údo_shellzshell )ÚstripÚhasattrr(Ú identchars)rr/ÚiÚnÚcmdÚargs rÚ parselinez Cmd.parseline¬sþ€ð �zŠz‰|Œ|ˆØð (ؘ˜tÐ#Ð #Ø �!ŒW˜Š^ˆ^ؘT ! " "œXÑ%ˆDˆDØ �!ŒW˜Š^ˆ^Ý�t˜ZÑ(Ô(ð (Ø $ q r r¤(Ñ*��à˜T 4Ð'Ð'Ø•#�d‘)”)ˆ1ˆØ�!Šeˆe˜˜Qœ 4¤?Ð2Ð2¸¸!¹°Aˆa�!Šeˆe˜˜Qœ 4¤?Ð2Ð2ؘ˜˜”8˜T ! " "œXŸ^š^Ñ-Ô-ˆSˆØ�C˜ˆ~Ðrcóv—| |¦«\}}}|s| ¦«S|€| |¦«S||_|dkrd|_|dkr| |¦«S t |d|z¦«}n%#t $r| |¦«cYSwxYw||¦«S)ahInterpret the argument as though it had been typed in response to the prompt. This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks. The return value is a flag indicating whether interpretation of commands by the interpreter should stop. NrrÚdo_)rCÚ emptylineÚdefaultÚlastcmdÚgetattrÚAttributeError)rr/rArBÚfuncs rr+z Cmd.onecmdÀs׀🚨Ñ-Ô-‰ˆˆS�$Øð $Ø—>’>Ñ#Ô#Ð #Ø ˆ;Ø—<’< Ñ%Ô%Ð %؈Œ Ø �5Š=ˆ=؈DŒLØ �"Š9ˆ9Ø—<’< Ñ%Ô%Ð %ð *ݘt U¨S¡[Ñ1Ô1��øÝ!ð *ð *ð *Ø—|’| DÑ)Ô)Ð)Ð)Ð)ð *øøøà�4˜‘9”9Ð sÁ7B  B-Â,B-cóH—|jr| |j¦«SdS)zªCalled when an empty line is entered in response to the prompt. If this method is not overridden, it repeats the last nonempty command entered. N)rHr+r6s rrFz Cmd.emptylineÛs,€ð Œ<ð -Ø—;’;˜tœ|Ñ,Ô,Ð ,ð -ð -rcó@—|j d|z¦«dS)z§Called on an input line when the command prefix is not recognized. If this method is not overridden, it prints an error message and returns. z*** Unknown syntax: %s N)r r!r3s rrGz Cmd.defaultås&€ð Œ ×ÒÐ4°TÑ9Ñ:Ô:Ð:Ð:Ð:rcó—gS)z£Method called to complete an input line when no command-specific complete_*() method is available. By default, it returns an empty list. r2)rÚignoreds rÚcompletedefaultzCmd.completedefaultîs €ðˆ rcóN‡—d|zŠˆfd„| ¦«D¦«S)NrEcóN•—g|]!}| ‰¦«¯|dd…‘Œ"S)éN©Ú startswith)Ú.0ÚaÚdotexts €rú z%Cmd.completenames..ùs2ø€ÐHÐHÐH˜!°1·<²<ÀÑ3GÔ3GÐH��!�"�"”ÐHÐHÐHr)Ú get_names)rÚtextrOrXs @rÚ completenameszCmd.completenames÷s0ø€Ø�t‘ˆØHÐHÐHÐH˜tŸ~š~Ñ/Ô/ÐHÑHÔHÐHrcó$—|dkrìddl}| ¦«}| ¦«}t|¦«t|¦«z }| ¦«|z }| ¦«|z }|dkrS| |¦«\} } } | dkr|j} n3 t|d| z¦«} n#t$r |j} Yn wxYw|j } | ||||¦«|_ |j |S#t$rYdSwxYw)zÕReturn the next possible completion for 'text'. If a command has not been entered, then complete against command list. Otherwise try to call complete_ to get list of completions. rNrÚ complete_) rÚget_line_bufferÚlstripr(Ú get_begidxÚ get_endidxrCrPrIrJr\Úcompletion_matchesÚ IndexError) rr[ÚstaterÚorigliner/ÚstrippedÚbegidxÚendidxrAÚargsÚfooÚcompfuncs rrz Cmd.completeûsD€ð �AŠ:ˆ:Ø ˆOˆOˆOØ×/Ò/Ñ1Ô1ˆHØ—?’?Ñ$Ô$ˆDݘ8‘}”}¥s¨4¡y¤yÑ0ˆHØ×(Ò(Ñ*Ô*¨XÑ5ˆFØ×(Ò(Ñ*Ô*¨XÑ5ˆFØ�aŠxˆxØ!%§¢°Ñ!5Ô!5‘��T˜3ؘ"’9�9Ø#Ô3�H�Hð8Ý#*¨4°¸sÑ1BÑ#CÔ#C˜˜øÝ)ð8ð8ð8Ø#'Ô#7˜˜˜ð8øøøð Ô-�Ø&. h¨t°T¸6À6Ñ&JÔ&JˆDÔ #ð ØÔ*¨5Ô1Ð 1øÝð ð ð Ø�4�4ð øøøs$Â.CÃCÃCÃ4 DÄ DÄDcó*—t|j¦«S©N)ÚdirÚ __class__r6s rrZz Cmd.get_namess€õ�4”>Ñ"Ô"Ð"rcó°‡—t|j‰ަ«}tˆfd„| ¦«D¦«¦«}t||z¦«S)Nc3óh•K—|],}| d‰dz¦«¯ |dd…V—Œ-dS)Úhelp_réNrT)rVrWrjs €rú z$Cmd.complete_help.. sXøèè€ð9ð9˜qØŸ š  W¨t°A¬wÑ%6Ñ7Ô7ð9�Q�q�r�r”Uð9ð9ð9ð9ð9ð9r)Úsetr\rZÚlist)rrjÚcommandsÚtopicss ` rÚ complete_helpzCmd.complete_helpslø€ÝÐ)�tÔ)¨4Ð0Ñ1Ô1ˆÝð9ð9ð9ð9 D§N¢NÑ$4Ô$4ð9ñ9ô9ñ9ô9ˆå�H˜vÑ%Ñ&Ô&Ð&rcó®—|r¾ t|d|z¦«}n�#t$r� t|d|z¦«j}|r-|j dt |¦«z¦«YdSn#t$rYnwxYw|j dt |j|fz¦«z¦«YdSwxYw|¦«dS| ¦«}g}g}t¦«}|D]-}|dd…dkr|  |dd…¦«Œ.|  ¦«d} |D]’}|dd…dkr‚|| krŒ|} |dd…} | |vr+|  | ¦«|  | ¦«ŒRt||¦«jr|  | ¦«Œ}|  | ¦«Œ“|j dt |j ¦«z¦«| |j|dd ¦«| |jt#|¦«dd ¦«| |j|dd ¦«dS) zEList available commands with "help" or detailed help with "help cmd".rsrEú%s NrtrrSééP)rIrJÚ__doc__r r!r"ÚnohelprZrvÚaddÚsortÚappendÚremoveÚ doc_leaderÚ print_topicsÚ doc_headerÚ misc_headerÚsortedÚ undoc_header) rrBrKÚdocÚnamesÚcmds_docÚ cmds_undocryÚnameÚprevnamerAs rÚdo_helpz Cmd.do_help$sž€à ð* Dð ݘt W¨s¡]Ñ3Ô3��øÝ!ð ð ð ðÝ  e¨c¡kÑ2Ô2Ô:�CØðØœ ×)Ò)¨&µ°S±´©/Ñ:Ô:Ð:ؘ˜ðøõ&ðððØ�Dðøøøà” ×!Ò! &­¨T¬[¸C¸6Ñ-AÑ)BÔ)BÑ"BÑCÔCÐCØ��ð øøøð ˆD‰FŒFˆFˆFˆFà—N’NÑ$Ô$ˆE؈H؈JÝ‘U”UˆFØð )ð )�ؘ˜˜”8˜wÒ&Ð&Ø—J’J˜t A B BœxÑ(Ô(Ð(øØ �JŠJ‰LŒLˆLàˆHØð /ð /�ؘ˜˜”8˜uÒ$Ð$ؘxÒ'Ð'Ø Ø#�HؘQ˜R˜Rœ�Cؘf�}�}Ø Ÿš¨Ñ,Ô,Ð,ØŸ š  cÑ*Ô*Ð*Ð*Ý   tÑ,Ô,Ô4ð/Ø Ÿš¨Ñ,Ô,Ð,Ð,à"×)Ò)¨#Ñ.Ô.Ð.øØ ŒK× Ò ˜f¥S¨¬Ñ%9Ô%9Ñ9Ñ :Ô :Ð :Ø × Ò ˜dœo°¸RÀÑ CÔ CÐ CØ × Ò ˜dÔ.µ¸±´ÀÀ2Ñ FÔ FÐ FØ × Ò ˜dÔ/°¸RÀÑ CÔ CÐ CÐ CÐ Cs3„˜ B2£AA+Á*B2Á+ A8Á5B2Á7A8Á86B2Â1B2c óT—|r¥|j dt|¦«z¦«|jr?|j dt|jt |¦«z¦«z¦«| ||dz ¦«|j d¦«dSdS)Nr|rr)r r!r"Úrulerr(Ú columnize)rÚheaderÚcmdsÚcmdlenÚmaxcols rr†zCmd.print_topicsRs¤€Ø ð $Ø ŒK× Ò ˜f¥S¨¡[¤[Ñ0Ñ 1Ô 1Ð 1ØŒzð HØ” ×!Ò! &­¨T¬Z½#¸f¹+¼+Ñ-EÑ)FÔ)FÑ"FÑGÔGÐGØ �NŠN˜4 ¨¡Ñ *Ô *Ð *Ø ŒK× Ò ˜dÑ #Ô #Ð #Ð #Ð #ð  $ð $rr~c ó‡—‰s|j d¦«dSˆfd„tt‰¦«¦«D¦«}|r8t dd t t|¦«¦«z¦«‚t‰¦«}|dkr2|j dt‰d¦«z¦«dStdt‰¦«¦«D]™}||zdz |z}g}d }t|¦«D]p} d} t|¦«D]7} | || zz} | |krn&‰| } t| t| ¦«¦«} Œ8|  | ¦«|| d zz }||krnŒq||krnŒšt‰¦«}d}dg}t|¦«D]Û} g}t|¦«D]0} | || zz} | |krd } n‰| } |  | ¦«Œ1|r|d s |d =|r|d ¯ tt|¦«¦«D]&} ||   || ¦«|| <Œ'|j dtd  |¦«¦«z¦«ŒÜdS)z¼Display a list of strings as a compact set of columns. Each column is only as wide as necessary. Columns are separated by two spaces (one was not legible enough). z NcóJ•—g|]}t‰|t¦«°|‘Œ Sr2)Ú isinstancer")rVr?rws €rrYz!Cmd.columnize..ds;ø€ð9ð9ð9˜AÝ)¨$¨q¬'µ3Ñ7Ô7ð9�að9ð9ð9rz list[i] not a string for i in %sz, rr|réþÿÿÿéréÿÿÿÿz ) r r!Úranger(Ú TypeErrorÚjoinÚmapr"ÚmaxrƒÚljust)rrwÚ displaywidthÚ nonstringsÚsizeÚnrowsÚncolsÚ colwidthsÚtotwidthÚcolÚcolwidthÚrowr?ÚxÚtextss ` rr”z Cmd.columnizeZsïø€ð ð Ø ŒK× Ò ˜kÑ *Ô *Ð *Ø ˆFð9ð9ð9ð9¥¥s¨4¡y¤yÑ!1Ô!1ð9ñ9ô9ˆ à ð ?ÝÐ>Ø"Ÿiši­­C°Ñ(<Ô(<Ñ=Ô=ñ>ñ?ô?ð ?å�4‰yŒyˆØ �1Š9ˆ9Ø ŒK× Ò ˜f¥S¨¨a¬¡\¤\Ñ1Ñ 2Ô 2Ð 2Ø ˆFå˜1�c $™iœiÑ(Ô(ð ð ˆEؘ%‘Z ‘\ eÑ+ˆE؈I؈HݘU‘|”|ð ð �Ø�Ý  ™<œ<ð5ð5�Cؘe C™i™�AؘD’y�yؘؘQœ�AÝ" 8­S°©V¬VÑ4Ô4�H�HØ× Ò  Ñ*Ô*Ð*ؘH q™LÑ(�ؘlÒ*Ð*Ø�Eð+à˜<Ò'Ð'Ø�ð(õ˜‘I”IˆE؈EؘˆIݘ‘<”<ð <ð <ˆC؈EݘU‘|”|ð ð �ؘ% ™)‘O�ؘ’9�9Ø�A�Aà˜Qœ�AØ— ’ ˜Q‘”��Øð   b¤ ð Ø˜"�Iðð   b¤ ð å�S ™ZœZÑ(Ô(ð >ð >�Ø" 3œZ×-Ò-¨i¸¬nÑ=Ô=��c‘ � Ø ŒK× Ò ˜f¥S¨¯ª°5Ñ)9Ô)9Ñ%:Ô%:Ñ:Ñ ;Ô ;Ð ;Ð ;ð <ð r“rHr r…r‡rˆrŠr€rrr0r*r,rr-rCr+rFrGrPr\rrZrzr‘r†r”r2rrrr4s|€€€€€ð ð ð€FØ€JØ €EØ€GØ €EØ€JØ;€JØ.€KØ+€LØ €FØ€Lð'ð'ð'ð'ð,1ð1ð1ð1ðhðððððð ð ð ð ð ð ðððð(ððð6-ð-ð-ð;ð;ð;ððððIðIðIðððð<#ð#ð#ð 'ð'ð'ð ,Dð,Dð,Dð\$ð$ð$ð7<ð7<ð7<ð7<ð7<ð7rºs†ðð*ð*ðXÐÐÐÐÐÐÐà ˆ'€à €Ø Ô ! F¤MÑ 1°CÑ 7€ ð]<ð]<ð]<ð]<ð]<ñ]<ô]<ð]<ð]<ð]