@@ -39,7 +39,7 @@ def is_truthy(arg):
3939 "python_ver" : "3.10" ,
4040 "local" : is_truthy (os .getenv ("INVOKE_JDIFF_LOCAL" , "false" )),
4141 "image_name" : "jdiff" ,
42- "image_ver" : os .getenv ("INVOKE_PARSER_IMAGE_VER " , "latest" ),
42+ "image_ver" : os .getenv ("INVOKE_JDIFF_IMAGE_VER " , "latest" ),
4343 "pwd" : Path (__file__ ).parent ,
4444 }
4545 }
@@ -81,9 +81,7 @@ def run_command(context, exec_cmd, port=None):
8181 print (f"LOCAL - Running command { exec_cmd } " )
8282 result = context .run (exec_cmd , pty = True )
8383 else :
84- print (
85- f"DOCKER - Running command: { exec_cmd } container: { context .jdiff .image_name } :{ context .jdiff .image_ver } "
86- )
84+ print (f"DOCKER - Running command: { exec_cmd } container: { context .jdiff .image_name } :{ context .jdiff .image_ver } " )
8785 if port :
8886 result = context .run (
8987 f"docker run -it -p { port } -v { context .jdiff .pwd } :/local { context .jdiff .image_name } :{ context .jdiff .image_ver } sh -c '{ exec_cmd } '" ,
@@ -120,9 +118,7 @@ def build(context, cache=True, force_rm=False, hide=False):
120118
121119 result = context .run (command , hide = hide )
122120 if result .exited != 0 :
123- print (
124- f"Failed to build image { context .jdiff .image_name } :{ context .jdiff .image_ver } \n Error: { result .stderr } "
125- )
121+ print (f"Failed to build image { context .jdiff .image_name } :{ context .jdiff .image_ver } \n Error: { result .stderr } " )
126122
127123
128124@task
@@ -148,9 +144,7 @@ def lock(context, check=False):
148144@task
149145def clean (context ):
150146 """Remove the project specific image."""
151- print (
152- f"Attempting to forcefully remove image { context .jdiff .image_name } :{ context .jdiff .image_ver } "
153- )
147+ print (f"Attempting to forcefully remove image { context .jdiff .image_name } :{ context .jdiff .image_ver } " )
154148 context .run (f"docker rmi { context .jdiff .image_name } :{ context .jdiff .image_ver } --force" )
155149 print (f"Successfully removed image { context .jdiff .image_name } :{ context .jdiff .image_ver } " )
156150
0 commit comments