multiCMD 1.45__tar.gz → 1.47__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {multicmd-1.45 → multicmd-1.47}/PKG-INFO +1 -1
- {multicmd-1.45 → multicmd-1.47}/multiCMD.egg-info/PKG-INFO +1 -1
- {multicmd-1.45 → multicmd-1.47}/multiCMD.py +8 -6
- {multicmd-1.45 → multicmd-1.47}/README.md +0 -0
- {multicmd-1.45 → multicmd-1.47}/multiCMD.egg-info/SOURCES.txt +0 -0
- {multicmd-1.45 → multicmd-1.47}/multiCMD.egg-info/dependency_links.txt +0 -0
- {multicmd-1.45 → multicmd-1.47}/multiCMD.egg-info/entry_points.txt +0 -0
- {multicmd-1.45 → multicmd-1.47}/multiCMD.egg-info/requires.txt +0 -0
- {multicmd-1.45 → multicmd-1.47}/multiCMD.egg-info/top_level.txt +0 -0
- {multicmd-1.45 → multicmd-1.47}/setup.cfg +0 -0
- {multicmd-1.45 → multicmd-1.47}/setup.py +0 -0
|
@@ -23,9 +23,9 @@ import time
|
|
|
23
23
|
from pprint import pformat
|
|
24
24
|
|
|
25
25
|
#%% global vars
|
|
26
|
-
version = '1.
|
|
26
|
+
version = '1.47'
|
|
27
27
|
__version__ = version
|
|
28
|
-
COMMIT_DATE = '2026-
|
|
28
|
+
COMMIT_DATE = '2026-04-28'
|
|
29
29
|
__running_threads = set()
|
|
30
30
|
__variables = {}
|
|
31
31
|
|
|
@@ -58,8 +58,10 @@ class Task:
|
|
|
58
58
|
def __repr__(self):
|
|
59
59
|
return f"""Task(command={pformat(self.command)},
|
|
60
60
|
returncode={self.returncode!r},
|
|
61
|
-
stdout=
|
|
62
|
-
|
|
61
|
+
stdout=
|
|
62
|
+
{pformat(self.stdout)},
|
|
63
|
+
stderr=
|
|
64
|
+
{pformat(self.stderr)},
|
|
63
65
|
stop={self.stop!r})"""
|
|
64
66
|
|
|
65
67
|
def __str__(self):
|
|
@@ -477,9 +479,9 @@ def __run_command(task,sem, timeout=60, quiet=False,dry_run=False,with_stdErr=Fa
|
|
|
477
479
|
# here we handle the rest of the stdout after the subprocess returns
|
|
478
480
|
stdout, stderr = proc.communicate()
|
|
479
481
|
if stdout:
|
|
480
|
-
__handle_stream(io.BytesIO(stdout),task.stdout,
|
|
482
|
+
__handle_stream(io.BytesIO(stdout),task.stdout, pre=pre, post=post, quiet=quiet)
|
|
481
483
|
if stderr:
|
|
482
|
-
__handle_stream(io.BytesIO(stderr),task.stderr,
|
|
484
|
+
__handle_stream(io.BytesIO(stderr),task.stderr, pre=pre, post=post, quiet=quiet)
|
|
483
485
|
if task.returncode is None:
|
|
484
486
|
# process been killed via timeout or sigkill
|
|
485
487
|
if task.stderr and task.stderr[-1].strip().startswith('Timeout!'):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|