
                             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  \R                  " \R                  R                  5       " S	 S
\R                  5      5       rg)zFCommand to print version information for Google Cloud CLI components.
    )absolute_import)division)unicode_literals)base)config)log)update_managerc                   T    \ rS rSrSrSS0r\R                  r\	S 5       r
S rS rSrg	)
Version   z:Print version information for Google Cloud CLI components.EXAMPLESz
          To print the version information for each installed Google Cloud CLI
          components and print a message if updates are available, run:

            $ {command}
          c                 :    U R                   R                  S5        g )Nzflattened[no-pad,separator=" "])display_info	AddFormat)parsers    lib/surface/version.pyArgsVersion.Args,   s    
!!"CD    c                     [         R                  " 5       R                  (       a/  [        R                  " 5       n[        UR                  5       5      nO0 n[         R                  US'   U$ )NzGoogle Cloud SDK)r   Pathssdk_rootr	   UpdateManagerdictGetCurrentVersionsInformationCLOUD_SDK_VERSION)selfargsmanagerversionss       r   RunVersion.Run0   sM    ||~,,.gg;;=>hh#)#;#;H Or   c                     [         R                  " 5       R                  (       aK  [        R                  " 5       nUR                  5       (       a   [        R                  R                  S5        g g g )NzwUpdates are available for some Google Cloud CLI components.  To install them,
please run:
  $ gcloud components update
)	r   r   r   r	   r   UpdatesAvailabler   statuswrite)r   resources_were_displayedr   s      r   EpilogVersion.Epilog:   sO    ||~,,.g		!	!	#	#

 " 	# 
$ r    N)__name__
__module____qualname____firstlineno____doc__detailed_helpr   SDK_TOOLS_CATEGORYcategorystaticmethodr   r!   r(   __static_attributes__r*   r   r   r   r      sA    B  - $$(E E#r   r   N)r/   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.corer   r   googlecloudsdk.core.updaterr	   ReleaseTracksReleaseTrackGACommandr   r*   r   r   <module>r=      sW     '  ' ( & # 6 D%%(()$#dll $# *$#r   