
                             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  G d	 d
ej                        Zy)z&Command to rename named configuration.    )absolute_import)division)unicode_literals)base)
completers)log)named_configsc                   0    e Zd ZdZdddZed        Zd Zy)RenamezRenames a named configuration.z          {description}

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

            $ {command} my-config --new-name=new-config
          )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 rename)	completerhelpz
--new-nameTz,Specifies the new name of the configuration.)requiredr   N)add_argumentr   NamedConfigCompleter)parsers    +lib/surface/config/configurations/rename.pyArgszRename.Args-   sD     112  4 ;  =    c                    t         j                  j                  |j                  |j                         t
        j                  j                  dj                  |j                  |j                               |j                  S )NzRenamed [{0}] to be [{1}].)	r	   ConfigurationStoreRenameConfigr   new_namer   statusPrintformat)selfargss     r   Runz
Rename.Run9   sc    $$11$2I2I26--A JJ1880 1 ==r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r"    r   r   r   r      s/    &- 	= 	=r   r   N)r&   
__future__r   r   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.configr   googlecloudsdk.corer   "googlecloudsdk.core.configurationsr	   SilentCommandr   r)   r   r   <module>r0      s1     - &  ' ( 8 # <%T %r   