
                         n    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  G d dej                        Z
y	)
z4The 'gcloud firebase test ios locales list' command.    )absolute_import)division)unicode_literals)util)basec                   .    e Zd ZdZddiZed        Zd Zy)ListzBList all iOS locales available for testing internationalized apps.EXAMPLESa            To list all available locales which can be used for testing
          internationalized iOS applications, run:

            $ {command}

          To filter the locales to see only Spanish-speaking regions, run:

            $ {command} --filter=Spanish
          c                 x    | j                   j                  d       t        j                  j	                  |        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.
    z
          table[box](
            id:label=LOCALE,
            name,
            region,
            tags.list().color(green=default,red=deprecated,yellow=preview)
          )
    N)display_info	AddFormatr   URI_FLAGRemoveFromParser)parsers    -lib/surface/firebase/test/ios/locales/list.pyArgsz	List.Args*   s1     !! # 	 	MM""6*    c                 l    t        j                  | j                        }|j                  j                  S )a+  Run the 'gcloud firebase test ios locales list' 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 list of iOS locales we want to have printed later.
    )r   GetIosCatalogcontextruntimeConfigurationlocales)selfargscatalogs      r   RunzList.Run<   s*       .G''///r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r	   r	      s/    J 	- + +"0r   r	   N)r    
__future__r   r   r   $googlecloudsdk.api_lib.firebase.testr   googlecloudsdk.callioper   ListCommandr	   r#   r   r   <module>r(      s+    ; &  ' 5 (.04 .0r   