image: create new module from {image,boot,fastboot,flash}.py

This commit is contained in:
InsanePrawn 2022-10-16 23:25:47 +02:00
parent afca099ede
commit 50bcd0de63
9 changed files with 18 additions and 16 deletions

View file

@ -28,7 +28,7 @@ def cmd_chroot(ctx: click.Context, type: str = 'build', name: str = None, enable
raise Exception(f'Unknown chroot type: "{type}"')
if type == 'rootfs':
from image import cmd_inspect
from image.image import cmd_inspect
assert isinstance(cmd_inspect, click.Command)
ctx.invoke(cmd_inspect, profile=name, shell=True)
return