
                             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	iZ
 G d
 de	j                        Ze
e_        y)z<The 'gcloud firebase test android locales describe' command.    )absolute_import)division)unicode_literals)
exceptions)util)baseEXAMPLESzd
    To see the attributes of the Android locale 'my-locale', run:

      $ {command} my-locale
    c                   &    e Zd ZdZed        Zd Zy)DescribezDescribe an Android locale.c                 *    | j                  dd       y)zMethod called by Calliope to register flags for this command.

    Args:
      parser: An argparse parser used to add arguments that follow this
          command in the CLI. Positional arguments are allowed.
    localez<The locale to describe, found using $ {parent_command} list.)helpN)add_argument)parsers    5lib/surface/firebase/test/android/locales/describe.pyArgszDescribe.Args'   s     K  M    c                     t        j                  | j                        }|j                  j                  D ]  }|j
                  |j                  k(  s|c S  t        j                  |j                        )a/  Run the 'gcloud firebase test android locales describe' command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation (i.e. group and command arguments combined).

    Returns:
      The testing_v1_messages.Locale object to describe.
    )	r   GetAndroidCatalogcontextruntimeConfigurationlocalesidr   r   LocaleNotFoundError)selfargscatalogr   s       r   RunzDescribe.Run4   sZ     $$T\\2G..66	dkk	! 7 
(
(
55r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r   $   s    #
M 
M6r   r   N)r"   
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   r   googlecloudsdk.callioper   DETAILED_HELPDescribeCommandr   detailed_helpr$   r   r   <module>r+      sK     C &  ' ; 5 (  6t## 6B ' r   