
    ?                         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  \R                  " \R                  R                  \R                  R                  5       " S S\R                  5      5       rg	)
z(gcloud pubsub emulator env_init command.    )absolute_import)division)unicode_literals)base)utilc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	EnvInit   a  Print the commands required to export pubsub emulator's env variables.

After starting the emulator, you need to set environment variables so that
your application connects to the emulator instead of the production
environment. Environment variables need to be set each time you start the
emulator. The environment variables depend on dynamically assigned port
numbers that could change when you restart the emulator.
EXAMPLESz
To print the env variables exports for a pubsub emulator, run:

  $ {command} --data-dir=DATA-DIR

For a detailed walkthrough of setting Pub/Sub emulator environment
variables, see https://cloud.google.com/pubsub/docs/emulator#env.
c                 :    U R                   R                  S5        g )Nzconfig[export])display_info	AddFormat)parsers    (lib/surface/emulators/pubsub/env_init.pyArgsEnvInit.Args/   s    
!!"23    c                 B    [         R                  " UR                  5      $ )N)r   ReadEnvYamldata_dir)selfargss     r   RunEnvInit.Run3   s    DMM**r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r   __static_attributes__r   r   r   r	   r	      s1      	- 4 4+r   r	   N)r    
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.emulatorsr   ReleaseTracksReleaseTrackALPHABETACommandr	   r   r   r   <module>r,      s^    / &  ' ( 5 D%%++T->->-C-CD+dll + E+r   