
    -                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddlm
Z
  ej                  ej                  j                  ej                  j                         G d	 d
ej                               Zy)z'gcloud bigtable emulator start command.    )absolute_import)division)unicode_literals)arg_parsers)base)bigtable_util)utilc                   .    e Zd ZdZddiZed        Zd Zy)StartzUStart a local Bigtable emulator.

  This command starts a local Bigtable emulator.
  EXAMPLESzV          To start a local Bigtable emulator, run:

            $ {command}
          c                 0    | j                  ddd d       y )Nz--host-portFc                 D    t         j                  j                  | d      S NT)ipv6_enabled)r   HostPortParse)args    'lib/surface/emulators/bigtable/start.py<lambda>zStart.Args.<locals>.<lambda>/   s    --33Cd3K    zYThe host:port to which the emulator should be bound. The default value is localhost:8086.)requiredtypehelp)add_argument)parsers    r   Argsz
Start.Args*   s#    
K#	  $r   c                     |j                   sGt        j                  j                  t	        j
                  t        j                        d      |_         t        j                  |       y r   )		host_portr   r   r   r	   GetHostPortr   BIGTABLEr   )selfargss     r   Runz	Start.Run4   sO    >>"++11$2B2B

 
 3"04 2 6dn r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r#    r   r   r   r      s1      - $ $r   r   N)r'   
__future__r   r   r   googlecloudsdk.callioper   r   $googlecloudsdk.command_lib.emulatorsr   r	   ReleaseTracksReleaseTrackALPHABETACommandr   r*   r   r   <module>r3      sf    . &  ' / ( > 5 D%%++T->->-C-CDDLL  Er   