get.py 319 B

123456789101112131415161718
  1. from ...manylinux import ensure_image
  2. __all__ = ['execute']
  3. def _unpack_args(args):
  4. '''Unpack command line arguments
  5. '''
  6. return (args.tags, args.extract)
  7. def execute(images, extract):
  8. '''Download image(s) to the cache
  9. '''
  10. for image in images:
  11. ensure_image(image, extract=extract)