
    
                         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\R                  5      rg)zThe Browse command.    )absolute_import)division)unicode_literals)base)browser_dispatcher)flags)log)
propertiesc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Browse   z)Open the specified versions in a browser.EXAMPLESab            To show version `v1` for the default service in the browser, run:

              $ {command} v1

          To show version `v1` of a specific service in the browser, run:

              $ {command} v1 --service="myService"

          To show multiple versions side-by-side, run:

              $ {command} v1 v2 --service="myService"
          c                     U R                   R                  S5        [        R                  R	                  U 5        U R                  SSSS9  U R                  SSSS	9  g )
Nz_
          table(
            version:label=VERSION,
            url:label=URL
          )
    versions+zI        The versions to open (optionally filtered by the --service flag).)nargshelpz	--servicez-szcIf specified, only open versions from the given service. If not specified, use the default service.)r   )display_info	AddFormatr   LAUNCH_BROWSERAddToParseradd_argument)parsers    "lib/surface/app/versions/browse.pyArgsBrowse.Args1   so    
!! # 	 
$$V,
M  N
 T1  3    c           	         [         R                  R                  R                  R	                  SS9n/ nUR
                   H?  nUR                  [        R                  " UUR                  UUR                  5      5        MA     [        U5      (       a2  UR                  (       a  [        R                  R                  S5        U$ g)z5Launch a browser, or return a table of URLs to print.T)requiredz@Did not detect your browser. Go to these links to view your app:N)r
   VALUEScoreprojectGetr   appendr   	BrowseAppservicelaunch_browseranyr	   statusPrint)selfargsr"   outputsversions        r   Run
Browse.RunD   s    $$,,00$0?GG==nn'11'26,,29262E2EG H !
 7||			

N	Pnr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r/   __static_attributes__r1   r   r   r   r      s/    1  -  3 3$r   r   N)r6   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.appr   r   googlecloudsdk.corer	   r
   Commandr   r1   r   r   <module>r?      s4      '  ' ( = 0 # *5T\\ 5r   