
                             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)z9The `gcloud app migrate-config queue-xml-to-yaml command.    )absolute_import)division)unicode_literalsN)base)migrate_configc                   &    e Zd ZdZed        Zd Zy)QueueXmlToYamlz'Convert a queue.xml file to queue.yaml.c                 *    | j                  dd       y )Nxml_filezPath to the queue.xml file.)help)add_argument)parsers    3lib/surface/app/migrate_config/queue_xml_to_yaml.pyArgszQueueXmlToYaml.Args   s    
*  ,    c                 &   t         j                  j                  |j                        }t         j                  j	                  t         j                  j                  |      d      }t        j                  d   }t        j                  |||       y )Nz
queue.yamlqueue-xml-to-yaml)srcdst)	ospathabspathr   joindirnamer   REGISTRYRun)selfargsr   r   entrys        r   r   zQueueXmlToYaml.Run%   s\    
''//$--
(C
'',,rwws+\
:C##$78E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-      sP     @ &  ' 	 ( 90T\\ 0  ^$$%89EE  r   