
    R	                        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      \R0                   " S S\R2                  5      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%   %   sS    **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)Spanner0   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                 0   [         R                  R                  5       nU[         R                  R                  L d  U[         R                  R                  L a4  [
        R                  " [        R                  [        R                  5        g [        5         g )N)r   r!   r"   LINUXMACOSXr   EnsureComponentIsInstalledr   SPANNER_EMULATOR_COMPONENT_IDSPANNER_EMULATOR_TITLEr%   )selfcontextargs
current_oss       r   FilterSpanner.FilterE   sf    **224Ji//55522999
%%

4
4

-
-
 r   r   N)r   r   r   r   __doc__detailed_helpr4   r   r   r   r   r'   r'   0   s    
 - r   r'   N)r6   
__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DefaultUniverseOnlyGroupr'   r   r   r   <module>rE      s    * &  ' ( = 5 * * .z// ***  T..33T5F5F5I5I  djj    r   