From ca21e8da23acb62e0e11b1c224f30a669105d2ba Mon Sep 17 00:00:00 2001 From: "Shah, Karan" Date: Tue, 22 Oct 2024 18:49:51 +0530 Subject: [PATCH] mark flag Signed-off-by: Shah, Karan --- openfl/interface/workspace.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openfl/interface/workspace.py b/openfl/interface/workspace.py index ed085d588b..d5c40fb1b1 100644 --- a/openfl/interface/workspace.py +++ b/openfl/interface/workspace.py @@ -343,7 +343,7 @@ def _get_dir_hash(path): # Commands for workspace packaging and distribution # ------------------------------------------------- -### fx workspace export + @workspace.command(name="export") def export_() -> str: """ @@ -401,11 +401,12 @@ def export_() -> str: logging.info(f"Export: {archive} created") return archive -### fx workspace dockerize + @workspace.command(name="dockerize") @option( "--save", required=False, + is_flag=True, help="Export the docker image as .tar file.", default=True, ) @@ -427,7 +428,7 @@ def dockerize_(context, save): ) _execute(base_image_build_cmd) - # Create workspace archive. + # Create workspace archive and build workspace image. archive = context.invoke(export_) workspace_name, _ = archive.split(".") ws_image_build_cmd = (