File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
1717singularity on pypi), and the versions here will coincide with these releases.
1818
1919## [ master] ( https://github.com/singularityhub/singularity-cli/tree/master )
20+ - add stream_type to 'run' command like in 'exec' (0.3.14)
2021 - do not modify user provided instance name when generating new instance (0.3.13)
2122 - bug with instance.run_command (0.3.12)
2223 - added check to enbsure stderr exists upon a non-zero return code when streaming (0.3.11)
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def run(
2626 return_result = False ,
2727 quiet = False ,
2828 background = False ,
29+ stream_type = "stdout" ,
2930):
3031 """
3132 run will run the container, with or withour arguments (which
@@ -49,6 +50,7 @@ def run(
4950 return_result: if True, return entire json object with return code
5051 and message result (default is False)
5152 quiet: print the command to the user
53+ stream_type: Sets which output stream from the singularity command should be return. Values are 'stdout', 'stderr', 'both'.
5254 """
5355 from spython .utils import check_install
5456
@@ -107,7 +109,7 @@ def run(
107109 elif not stream :
108110 result = self ._run_command (cmd , sudo = sudo , return_result = return_result )
109111 else :
110- return stream_command (cmd , sudo = sudo )
112+ return stream_command (cmd , sudo = sudo , output_type = stream_type )
111113
112114 # If the user wants the raw result object
113115 if return_result :
Original file line number Diff line number Diff line change 55# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
77
8- __version__ = "0.3.13 "
8+ __version__ = "0.3.14 "
99AUTHOR = "Vanessa Sochat"
1010AUTHOR_EMAIL = "vsoch@users.noreply.github.com"
1111NAME = "spython"
You can’t perform that action at this time.
0 commit comments