
                             d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	  G d d	ej                        Zd
e	j                  d   j                  ie_        y)z8The `gcloud app migrate-config cron-xml-to-yaml command.    )absolute_import)division)unicode_literalsN)base)migrate_configc                   &    e Zd ZdZed        Zd Zy)CronXmlToYamlz%Convert a cron.xml file to cron.yaml.c                 *    | j                  dd       y )Nxml_filezPath to the cron.xml file.)help)add_argument)parsers    2lib/surface/app/migrate_config/cron_xml_to_yaml.pyArgszCronXmlToYaml.Args   s    
)  +    c                 &   t         j                  j                  |j                        }t         j                  j	                  t         j                  j                  |      d      }t        j                  d   }t        j                  |||       y )Nz	cron.yamlcron-xml-to-yaml)srcdst)	ospathabspathr   joindirnamer   REGISTRYRun)selfargsr   r   entrys        r   r   zCronXmlToYaml.Run%   s\    
''//$--
(C
'',,rwws+[
9C##$67Eu#3/r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r	   r	      s    -+ +
0r   r	   briefr   )r#   
__future__r   r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.appr   Commandr	   r   descriptiondetailed_helpr%   r   r   <module>r-      sO     ? &  ' 	 ( 90DLL 0  ^$$%78DD r   