
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	KJr  SS
KJr   " S S\R                  5      r " S S\R                  5      rS r\R&                  " \R(                  R*                  \R(                  R,                  \R(                  R.                  5       " S S\R0                  5      5       rg)z#The gcloud emulators spanner group.    )absolute_import)division)unicode_literals)base)spanner_util)util)
exceptions)files)	platformsc                       \ rS rSrSrg)UnsupportedPlatformError    N__name__
__module____qualname____firstlineno____static_attributes__r       )lib/surface/emulators/spanner/__init__.pyr   r          r   r   c                       \ rS rSrSrg)DockerNotFoundError!   r   Nr   r   r   r   r   r   !   r   r   r   c                      [         R                  " S5      n U (       d>  [        SR                  [        R
                  R                  5       R                  S95      eg )Ndockerz]To use the Cloud Spanner Emulator on {platform}, docker must be installed on your system PATH)platform)r
   FindExecutableOnPathr   formatr   OperatingSystemCurrentname)docker_paths    r   _RequireDockerInstalledr%   %   sU    **84+	
	77=v..668== 8> 8?@ @ 
r   c                   &    \ rS rSrSrSS0rS rSrg)Spanner.   zpManage your local Spanner emulator.

This set of commands allows you to start and use a local Spanner emulator.
EXAMPLESza          To start a local Cloud Spanner emulator, run:

            $ {command} start
          c                     [         R                  R                  5       nU[         R                  R                  L a4  [        R
                  " [        R                  [        R                  5        g [        5         g )N)
r   r!   r"   LINUXr   EnsureComponentIsInstalledr   SPANNER_EMULATOR_COMPONENT_IDSPANNER_EMULATOR_TITLEr%   )selfcontextargs
current_oss       r   FilterSpanner.Filter@   sR    **224JY..444
%%

4
4

-
-/ r   r   N)r   r   r   r   __doc__detailed_helpr3   r   r   r   r   r'   r'   .   s     - r   r'   N)r5   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.emulatorsr   r   googlecloudsdk.corer	   googlecloudsdk.core.utilr
   r   Errorr   r   r%   ReleaseTracksReleaseTrackALPHABETAGAGroupr'   r   r   r   <module>rC      s    * &  ' ( = 5 * * .z// *** @ D%%++T->->-C-C%%((* djj  * r   