
    +                     z    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	  G d d	ej                        Zy
)zDA command that lists the gcloud group and command tree with details.    )absolute_import)division)unicode_literals)base)cli_tree)generatec                   &    e Zd ZdZed        Zd Zy)
ListGCloudzHList the gcloud CLI command tree with flag, positional and help details.c                 T    | j                  ddd       | j                  ddd       y )	Nz--branchCOMMAND_PATHzThe branch of the CLI subtree to generate as a dotted command path. Mainly used to generate test data. For example, for the `gcloud compute instances` branch use "compute.instances".)metavarhelpz--completions
store_truezList the static completion CLI tree. This is a stripped down variant of the CLI tree that only contains the subcommand and flag name dictionaries. The tree is written as a Python source file (~1MiB) that loads fast (~30ms) as a .pyc file.)actionr   )add_argument)parsers    lib/surface/meta/list_gcloud.pyArgszListGCloud.Args   sD    
K  M L  N    c                     |j                   r|j                   j                  d      nd }|j                  r"t        j                  | j
                  |       y t        j                  | j
                  d|       y )N.)clibranch-)r   pathr   )r   splitcompletionsr   ListCompletionTree_cli_power_users_onlyr   Dump)selfargsr   s      r   RunzListGCloud.Run.   sS    '+{{T[[s#F!!d&@&@Pmm22VLr   N)__name__
__module____qualname____doc__staticmethodr   r#    r   r   r
   r
      s    PN NMr   r
   N)r'   
__future__r   r   r   googlecloudsdk.callioper   r   ,googlecloudsdk.command_lib.static_completionr   Commandr
   r)   r   r   <module>r.      s/     K &  ' ( , AM Mr   