Skip to content

Commit

Permalink
mark flag
Browse files Browse the repository at this point in the history
Signed-off-by: Shah, Karan <[email protected]>
  • Loading branch information
MasterSkepticista committed Oct 22, 2024
1 parent c192636 commit ca21e8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openfl/interface/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down Expand Up @@ -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 <workspace_name>.tar file.",
default=True,
)
Expand All @@ -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 = (
Expand Down

0 comments on commit ca21e8d

Please sign in to comment.