
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  S	 rS
\0r " S S\R                  5      rg)z:The command to list installed/available gcloud components.    )absolute_import)division)unicode_literals)base)log)	snapshots)update_managerc                      [         R                  R                  U SS9nUR                  R	                  5       $ ! [
        [        [         R                  4 a     gf = f)Nzcomponents.repositories.list)command_pathUnknown)r   ComponentSnapshotFromURLssdk_definitionLastUpdatedStringAttributeError	TypeErrorURLFetchError)rsnapshots     +lib/surface/components/repositories/list.pyTransformLastUpdater      s\    **33	6 4 8H""4466
)Y%<%<	= s   7: AAlast_updatec                   >    \ rS rSrSrSSS.r\S 5       rS rS r	S	r
g
)List*   zFList any Trusted Tester component repositories you have registered.
  aU  
          List all Trusted Tester component repositories that are registered
          with the component manager.  If you have additional repositories, the
          component manager will look at them to discover additional components
          to install, or different versions of existing components that are
          available.
      z
          To list all Trusted Tester component repositories that are registered
          with the component manager, run:

            $ {command}
      )DESCRIPTIONEXAMPLESc                     [         R                  R                  U 5        [         R                  R                  U 5        U R                  R                  S5        U R                  R                  [        5        g)z#Adds/removes args for this command.zn
          table(
            .:label=REPOSITORY,
            last_update():label=LAST_UPDATE
          )
    N)r   PAGE_SIZE_FLAGRemoveFromParserURI_FLAGdisplay_info	AddFormatAddTransforms#_COMPONENTS_REPOSITORIES_TRANSFORMS)parsers    r   Args	List.Args=   sZ     	((0MM""6*
!! # 	 %%&IJ    c                 T    [         R                  R                  5       nU(       a  U$ / $ )zRuns the list command.)r	   UpdateManagerGetAdditionalRepositories)selfargsreposs      r   RunList.RunJ   s#    ((BBDE5!r!r)   c                 R    U(       d   [         R                  R                  S5        g g )NzmYou have no registered component repositories.  To add one, run:
  $ gcloud components repositories add URL

)r   statuswrite)r-   resources_were_displayeds     r   EpilogList.EpilogO   s!    #	jj;< $r)    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr'   r0   r6   __static_attributes__r8   r)   r   r   r   *   s8    

-  
K 
K"
<r)   r   N)r=   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.corer   googlecloudsdk.core.updaterr   r	   r   r%   ListCommandr   r8   r)   r   <module>rF      sG     A &  ' ( # 1 6 &' #
)<4 )<r)   