From 0cec961288a5108051be9a9c20643cfeccf71254 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Wed, 26 Jan 2022 17:58:46 +0100 Subject: [PATCH] image.py: cmd_build(): add profile_name parameter --- image.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/image.py b/image.py index 6b2bf0e..2d211ce 100644 --- a/image.py +++ b/image.py @@ -220,10 +220,11 @@ def cmd_image(): @cmd_image.command(name='build') -def cmd_build(): +@click.argument('profile_name', required=False) +def cmd_build(profile_name: str = None): enforce_wrap() - profile = config.get_profile() - device, flavour = get_device_and_flavour() + profile = config.get_profile(profile_name) + device, flavour = get_device_and_flavour(profile_name) post_cmds = FLAVOURS[flavour].get('post_cmds', []) # TODO: PARSE DEVICE ARCH AND SECTOR SIZE