
    6                         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S	K
Jr  SS
KJr  SSKJr   " S S\R"                  5      rg)z:The command to list installed/available gcloud components.    )absolute_import)division)unicode_literals)base)
exceptions)
completers)log)
properties)
console_io)update_managerc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Remove   z9Remove a registered Trusted Test component repository.
  ab            Remove a registered Trusted Tester component repository from the list
          of repositories used by the component manager.  After removing a
          repository, you can run:
            $ gcloud components update
          to revert back to the standard version of any components that were
          installed from that repository.
      z          To be prompted for registered Trusted Tester component repositories to
          remove run:

            $ gcloud components repositories remove
      )DESCRIPTIONEXAMPLESc                 h    U R                  SSS[        R                  SS9  U R                  SSSS	9  g )
Nurl*URLzZero or more URLs for the component repositories you want to remove.  If none are given, you will be prompted to choose which existing repository you want to remove.)nargsmetavar	completerhelpz--all
store_truez#Remove all registered repositories.)actionr   )add_argumentr   RepoCompleter)parsers    -lib/surface/components/repositories/remove.pyArgsRemove.Args3   sI    
**2  3 B  D    c                    [         R                  R                  5       n/ nUR                  (       a  UR	                  U5        / nGO"UR
                  (       a  U(       d  [         R                  " S5      eUR
                   H.  nXB;  d  M
  [        R                  " SSR                  U5      5      e   UR
                   H  nUR                  U5        M     UR	                  UR
                  5        OvU(       d  [         R                  " S5      e[        R                  " USSS9nUc   [        R                  R                  S5        O UR!                  UR#                  U5      5        U(       ah  [$        R&                  " [$        R(                  R*                  R,                  U(       a  SR/                  U5      OS[$        R0                  R2                  S	9  U H/  n[        R                  R                  S
R                  US95        M1     U$ )zRuns the remove command.z$You have no registered repositories.r   z0URL [{0}] was not a known registered repository.Nz*Which repository would you like to remove?)defaultmessagezNo repository was removed.,)scopezRemoved repository: [{repo}])repo)r   UpdateManagerGetAdditionalRepositoriesallextendr   NoRegisteredRepositoriesErrorr   InvalidArgumentExceptionformatremover   PromptChoicer	   statusPrintappendpopr
   PersistPropertyVALUEScomponent_manageradditional_repositoriesjoinScopeINSTALLATION)selfargsreposremoved_reposr   resultremoved_repos          r   Run
Remove.Run@   s   ((BBDEM xx5!e 
::24 	4#33@GGLN N 
 #S 488$ ::24 	4&&
>@f 


56UYYv./  



-
-
E
E"#((5/  --/
 &	jj5<<,<OP &r"    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr    rC   __static_attributes__rE   r"   r   r   r      s3    

-" 
D 
D-r"   r   N)rJ   
__future__r   r   r   googlecloudsdk.callioper   r   %googlecloudsdk.command_lib.componentsr   googlecloudsdk.corer	   r
   googlecloudsdk.core.consoler   googlecloudsdk.core.updaterr   SilentCommandr   rE   r"   r   <module>rU      s=     A &  ' ( . < # * 2 6NT Nr"   