
    )                     z    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 rS	 rSS
 jrSS jrSS jrg)z;Flags and helpers for the compute images packages commands.    )absolute_import)division)unicode_literals)arg_parsers)resource_args)concept_parsersc                 x    [         R                  " [        R                  " S5      /5      R	                  U 5        g)z6Add resource arg of image for 'packages list' command.zName of the disk image.Nr   ConceptParserr   #CreateImageResourcePresentationSpecAddToParserparsers    ?lib/googlecloudsdk/command_lib/compute/images/packages/flags.pyAddImageResourceArgr      s2    

;
;')
 K    c                     [         R                  " [        R                  " SS5      [        R                  " SS5      /5      R	                  U 5        g)z8Add resource args of images for 'packages diff' command.z(Name of the disk image as the diff base.basez/Name of the disk image to diff with base image.diffNr
   r   s    r   AddResourceArgsr   $   sI    

;
;8& 
;
;?		 Kr   c                 \    SnU(       a  SO[         R                  nU R                  SUUS9  g)z'Add --show-added-packages Boolean flag.z/Show only the packages added to the diff image.
store_truez--show-added-packageshelpactionNr   StoreTrueFalseActionadd_argumentr   use_default_value	help_textr   s       r   AddShowAddedPackagesFlagr"   2   s6    @)-L,, 	  r   c                 \    SnU(       a  SO[         R                  nU R                  SUUS9  g)z)Add --show-removed-packages Boolean flag.z3Show only the packages removed from the base image.r   z--show-removed-packagesr   Nr   r   s       r   AddShowRemovedPackagesFlagr$   =   s6    D)-L,, 	  r   c                 \    SnU(       a  SO[         R                  nU R                  SUUS9  g)z)Add --show-updated-packages Boolean flag.z2Show only the packages updated between two images.r   z--show-updated-packagesr   Nr   r   s       r   AddShowUpdatedPackagesFlagr&   H   s6    C)-L,, 	  r   N)T)__doc__
__future__r   r   r   googlecloudsdk.callioper   2googlecloudsdk.command_lib.compute.images.packagesr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r"   r$   r&    r   r   <module>r-      s6    B &  ' / L Dr   