From 5b730ce3424dec7ebbc253d008451630c03213a1 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Tue, 15 Feb 2022 00:02:22 +0100 Subject: [PATCH] cmd_image_inspect(): add profile-name arg --- image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/image.py b/image.py index 14d0b14..50766e8 100644 --- a/image.py +++ b/image.py @@ -415,10 +415,11 @@ def cmd_build(profile_name: str = None, build_pkgs: bool = True, block_target: s @cmd_image.command(name='inspect') @click.option('--shell', '-s', is_flag=True) -def cmd_inspect(shell: bool = False): +@click.argument('profile') +def cmd_inspect(profile: str = None, shell: bool = False): """Open a shell in a device image""" enforce_wrap() - device, flavour = get_device_and_flavour() + device, flavour = get_device_and_flavour(profile) # TODO: get arch from profile arch = 'aarch64' # TODO: PARSE DEVICE SECTOR SIZE