Get images to the cache

This commit is contained in:
Valentin Niess
2025-05-22 09:32:51 +02:00
parent a7c56e3c77
commit f746e5dae3
5 changed files with 54 additions and 20 deletions

18
python_appimage/commands/cache/get.py vendored Normal file
View File

@@ -0,0 +1,18 @@
from ...manylinux import ensure_image
__all__ = ['execute']
def _unpack_args(args):
'''Unpack command line arguments
'''
return (args.tags, args.extract)
def execute(images, extract):
'''Download image(s) to the cache
'''
for image in images:
ensure_image(image, extract=extract)