
                         (   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r\R                  \R                  " \R                  R                   \R                  R"                  5       " S
 S\R$                  5      5       5       rg	)z?Command for creating files for a local development environment.    )base)flags)local)local_files)cloud)cloud_files)filesNc                   .    \ rS rSrSr\S 5       rS rSrg)Export   aq  Writes skaffold and kubernetes files for local development.

Writes skaffold and kubernetes yaml that builds a docker image
and runs it locally. In order to build and run the image, run

> skaffold dev

This command should be used if there is a need to make
customizations to the development environment. Otherwise,
the gcloud local dev command should be used instead.
c                 L   [         R                  " 5       nUR                  U R                  5       5        UR	                  5         UR                  5         UR                  5         UR                  5         UR                  5       R                  5         UR                  5       R                  5         UR                  5       R                  5         UR                  U5        UR                  SS9nUR                  SSSSS9  UR                  SSSSS	S
9  UR                  SSSS9  g )NF)requiredz--skaffold-filezskaffold.yamlz-Location of the generated skaffold.yaml file.)defaultr   helpz--no-skaffold-file
store_truez$Do not produce a skaffold.yaml file.)r   actionr   r   z--kubernetes-filezpods_and_services.yamlz=File containing yaml specifications for kubernetes resources.)r   r   )r   CommonFlagsAddAlphaAndBetaFlagsReleaseTrackAddServiceNameAddImage	AddMemoryAddCpuEnvVarsGroup
AddEnvVarsAddEnvVarsFileBuildersGroup
AddBuilderConfigureParseradd_mutually_exclusive_groupadd_argument)clsparsercommonskaffold_output_groups       lib/surface/code/export.pyArgsExport.Args*   s    F
 0 0 23

OO

MMO
$$&
((*
%%'
6""???O&&<	 ' > &&3 ' 5 (L  N    c                    UR                  S5      (       a>  UR                  (       a-  [        R                  " U5      n[        R                  " U5      nO:[
        R                  " XR                  5       5      n[        R                  " U5      n[        R                  " UR                  5       nUR                  [        R                  " UR                  5       5      5        S S S 5        UR                   (       dh  [        R                  " UR"                  5       nUR                  [        R                  " UR%                  UR                  5      5      5        S S S 5        g g ! , (       d  f       N= f! , (       d  f       g = f)Nr   )IsKnownAndSpecifiedr   AssembleSettingsr   CloudRuntimeFilesr   r   r   LocalRuntimeFilesr	   
FileWriterkubernetes_filewritesixuKubernetesConfigno_skaffold_fileskaffold_fileSkaffoldConfig)selfargssettingsfile_generatoroutputs        r&   Run
Export.RunM   s   ((TZZ''-h"44X>n''.?.?.ABh"44X>n			$..	/6ll35588:;< 
0   D../6SUU>889M9MNOP 0/ ! 
0	/ 0/s   /4E%?E6%
E36
F N)	__name__
__module____qualname____firstlineno____doc__classmethodr'   r=   __static_attributes__r?   r)   r&   r   r      s$    
  N  NDQr)   r   )rD   googlecloudsdk.callioper   googlecloudsdk.command_lib.coder   r   r   %googlecloudsdk.command_lib.code.cloudr   r   googlecloudsdk.core.utilr	   r2   HiddenReleaseTracksr   BETAALPHACommandr   r?   r)   r&   <module>rP      sw    F ( 1 1 7 7 = * 
 D%%**D,=,=,C,CD=QT\\ =Q E =Qr)   