ó
    €Ï¦  ã                   ó°   • S r SSKrSSKrSSKJr  SSKJr  SSKJr  SrS r	S r
S	 rS
 r\	\
\\S.rSSKJr  SSKJr  SSKJr  SSKJr  S rS r\" 5         g)zÖUtilities for the interactive gcloud debugger.

Contains things like:
  - Common imports pre-imported
  - Easy utility wrappers
  - Pre-initialized API clients

That make interactive debugging with gcloud a dream.
é    N)Úapis)Úapis_internal)Úapis_mapa+  
                   _     _     _     _     _     _     _
                  / \   / \   / \   / \   / \   / \   / \
                 ( W ) ( E ) ( L ) ( C ) ( O ) ( M ) ( E )
                  \_/   \_/   \_/   \_/   \_/   \_/   \_/

                _____               ________)
               |_   _|___          (, /         /)      /)
                 | | | . |           /___, _   (/_     // ___    _
                 |_| |___|          /     (_(_/_) (_(_(/_(_)(_(_/_)_
                                 (_/
             _                 _       _      _
            | |               | |     | |    | |
   __ _  ___| | ___  _   _  __| |   __| | ___| |__  _   _  __ _  __ _  ___ _ __
  / _` |/ __| |/ _ \| | | |/ _` |  / _` |/ _ \ '_ \| | | |/ _` |/ _` |/ _ \ '__|
 | (_| | (__| | (_) | |_| | (_| | | (_| |  __/ |_) | |_| | (_| | (_| |  __/ |
  \__, |\___|_|\___/ \__,_|\__,_|  \__,_|\___|_.__/ \__,_|\__, |\__, |\___|_|
   __/ |                                                   __/ | __/ |
  |___/                                                   |___/ |___/
c                  ó"  •  SSK n SSKnU R                  UR                  [	        5       5      R
                  5        U R                  S5        [        R                  " [	        5       5      nUR                  [        5        g! [         a     N@f = f)z<Run a console based on the built-in code.InteractiveConsole.r   Nztab: complete)ÚreadlineÚrlcompleterÚset_completerÚ	CompleterÚglobalsÚcompleteÚparse_and_bindÚImportErrorÚcodeÚInteractiveConsoleÚinteractÚ_BANNER)r   r   Úconsoles      Ú,lib/googlecloudsdk/command_lib/meta/debug.pyÚ_PythonConsoler   =   sr   € ð	-ãÛð
 ×Ñ˜;×0Ñ0´³Ó;×DÑDÔEØ×Ñ˜OÔ,Ü×#Ò#¤G£IÓ.€'Ø	×Ñ”7Õøô 
ó 	Ùð	ús   ‚B Â
BÂBc                  ó,   • SSK n U R                  5         g)z(Run a console based on the built-in pdb.r   N)ÚpdbÚ	set_trace)r   s    r   Ú_PdbConsoler   M   s   € ãØ‡--…/ó    c                  óz   •  SSK n U R                  5         g! [         a    [        R                  " S5         gf = f)z&Run a console based on IPython's ipdb.r   NzxCould not start the ipdb debugger. Please ensure that it is installed, or try the default debugger with `--mode=python`.)Úipdbr   r   ÚlogÚerror)r   s    r   Ú_IpdbConsoler   S   ó9   € ðNÛØ‡NNÕøÜ	ó NÜ‡I‚Ið Mö NðNúó   ‚ — :¹:c                  óz   •  SSK n U R                  5         g! [         a    [        R                  " S5         gf = f)zRun a console based on PuDB.r   NzxCould not start the PuDB debugger. Please ensure that it is installed, or try the default debugger with `--mode=python`.)Úpudbr   r   r   r   )r#   s    r   Ú_PudbConsoler$   ]   r    r!   )Úpythonr   r   r#   )r   )Ú
properties)Ú
console_io)Úfilesc                  óž   • [         R                   H9  n [        R                  " U [        R
                  " U 5      5      [        5       U '   M;     g)z6Populate the global module namespace with API clients.N)r   ÚMAPr   ÚGetClientInstancer   Ú_GetDefaultVersionr   )Úapi_names    r   ÚLoadApisr.      s7   € ä—,”,€hä×0Ò0Ø”-×2Ò2°8Ó<ó>„GƒIˆhÓò r   c                  óº   ^• SR                  [        R                  5      m " U4S jS[        5      n [        R
                   H  nU " 5       [        5       U'   M     g)zäMake API names print instructions for loading the APIs when __repr__'ed.

For example:

>>> appengine
Run `LoadApis()` to load all APIs, including this one.

Load APIs it lazily because it takes about a second to load all APIs.
z1Run `{0}()` to load all APIs, including this one.c                   ó"   >• \ rS rSrU 4S jrSrg)Ú:_PopulateApiNamesWithLoadMessage.<locals>._LoadApisMessageé•   c                 ó   >• T$ )N© )ÚselfÚload_apis_messages    €r   Ú__repr__ÚC_PopulateApiNamesWithLoadMessage.<locals>._LoadApisMessage.__repr__—   s	   ø€ ØÐr   r4   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r7   Ú__static_attributes__)r6   s   €r   Ú_LoadApisMessager1   •   s   ø† ÷ð r   r>   N)Úformatr.   r9   Úobjectr   r*   r   )r>   r-   r6   s     @r   Ú _PopulateApiNamesWithLoadMessagerA   ‡   sJ   ø€ ð :¿6¹6Ü
×
Ñ
ó<ð ÷œô ô
 —,”,€hÙ*Ó,„GƒIˆhÓò r   )Ú__doc__r   ÚsiteÚgooglecloudsdk.api_lib.utilr   r   Ú%googlecloudsdk.generated_clients.apisr   r   r   r   r   r$   ÚCONSOLESÚgooglecloudsdk.corer   r&   Úgooglecloudsdk.core.consoler'   Úgooglecloudsdk.core.utilr(   r.   rA   r4   r   r   Ú<module>rJ      so   ðñó ó å ,Ý 5Ý :ð€ò,ò òNòNð ØØØñ	€õ $Ý *Ý 2Ý *ò>ò-ñ. !Õ "r   