
    !
                         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lmZ dd	lmZ  G d
 dej                        Zy)z(Command to describe named configuration.    )absolute_import)division)unicode_literals)base)
completers)
properties)named_configs)properties_filec                   0    e Zd ZdZdddZed        Zd Zy)Describez:Describes a named configuration by listing its properties.z          {description}

          See `gcloud topic configurations` for an overview of named
          configurations.
          z          To describe an existing configuration named `my-config`, run:

            $ {command} my-config

          This is similar to:

            $ gcloud config configurations activate my-config

            $ gcloud config list
          )DESCRIPTIONEXAMPLESc                 p    | j                  dt        j                  d       | j                  ddd       y)	zAdds args for this command.configuration_namez%Name of the configuration to describe)	completerhelpz--all
store_truez#Include unset properties in output.)actionr   N)add_argumentr   NamedConfigCompleter)parsers    -lib/surface/config/configurations/describe.pyArgszDescribe.Args4   sC     114  6 2  4    c                    t         j                  j                  d      }|j                  |j                  d       }|s.t        j
                  dj                  |j                              |j                  |j                  t        j                  j                  |j                  t        j                  |j                  g      d      dS )NT)include_none_configz'The configuration [{0}] does not exist.)
list_unsetr
   only_file_contents)name	is_activer   )r	   ConfigurationStore
AllConfigsgetr   NamedConfigErrorformatr   r    r   VALUES	AllValuesallr
   PropertiesFile	file_path)selfargsall_configsconfigs       r   RunzDescribe.Run?   s    22==  > "K__T44d;F**
36$))*, ,
 %% ''11xx+::F<L<L;MN# 2 % r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r/    r   r   r   r      s/    B
-( 4 4r   r   N)r3   
__future__r   r   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.configr   googlecloudsdk.corer   "googlecloudsdk.core.configurationsr	   r
   DescribeCommandr   r6   r   r   <module>r=      s4     / &  ' ( 8 * < >2t## 2r   