mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Get images to the cache
This commit is contained in:
18
python_appimage/commands/cache/get.py
vendored
Normal file
18
python_appimage/commands/cache/get.py
vendored
Normal 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)
|
||||
Reference in New Issue
Block a user