
    )                     t    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 d Zd	 Zdd
ZddZddZy)z;Flags and helpers for the compute images packages commands.    )absolute_import)division)unicode_literals)arg_parsers)resource_args)concept_parsersc                 t    t        j                  t        j                  d      g      j	                  |        y)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                     t        j                  t        j                  dd      t        j                  dd      g      j	                  |        y)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                 X    d}|rdnt         j                  }| j                  d||       y)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                 X    d}|rdnt         j                  }| j                  d||       y)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                 X    d}|rdnt         j                  }| j                  d||       y)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   