image/image: move CLI methods to image/cli.py
This commit is contained in:
parent
4b2150940d
commit
943d5f0675
3 changed files with 215 additions and 185 deletions
|
@ -7,6 +7,7 @@ from typing import Optional
|
|||
from config.state import config
|
||||
from wrapper import enforce_wrap
|
||||
from devices.device import get_profile_device
|
||||
from image.cli import cmd_inspect
|
||||
|
||||
from .abstract import Chroot
|
||||
from .base import get_base_chroot
|
||||
|
@ -30,7 +31,6 @@ def cmd_chroot(ctx: click.Context, type: str = 'build', name: Optional[str] = No
|
|||
raise Exception(f'Unknown chroot type: "{type}"')
|
||||
|
||||
if type == 'rootfs':
|
||||
from image.image import cmd_inspect
|
||||
assert isinstance(cmd_inspect, click.Command)
|
||||
ctx.invoke(cmd_inspect, profile=name, shell=True)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue