multiCMD 1.20__py3-none-any.whl → 1.21__py3-none-any.whl
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.20.dist-info → multiCMD-1.21.dist-info}/METADATA +1 -1
- multiCMD-1.21.dist-info/RECORD +6 -0
- multiCMD.py +12 -1
- multiCMD-1.20.dist-info/RECORD +0 -6
- {multiCMD-1.20.dist-info → multiCMD-1.21.dist-info}/WHEEL +0 -0
- {multiCMD-1.20.dist-info → multiCMD-1.21.dist-info}/entry_points.txt +0 -0
- {multiCMD-1.20.dist-info → multiCMD-1.21.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
multiCMD.py,sha256=d0kwe5KYNJTiR6521NB7UcX_qNwYA3tELWPjL1quYK0,17056
|
2
|
+
multiCMD-1.21.dist-info/METADATA,sha256=KkZMgNNJXXWGBBzt10MMaOf5Jbx2Yf-itSj5MnEM5wM,5640
|
3
|
+
multiCMD-1.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
4
|
+
multiCMD-1.21.dist-info/entry_points.txt,sha256=nSLBkYrcUCQxt1w3LIJkvgOhpRYEC0xAPqNG7u4OYs8,89
|
5
|
+
multiCMD-1.21.dist-info/top_level.txt,sha256=DSqgftD40G09F3qEjpHRCUNUsGUvGZZG69Sm3YEUiWI,9
|
6
|
+
multiCMD-1.21.dist-info/RECORD,,
|
multiCMD.py
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
#!/usr/bin/env python3
|
2
|
+
# /// script
|
3
|
+
# requires-python = ">=3.6"
|
4
|
+
# dependencies = [
|
5
|
+
# "argparse",
|
6
|
+
# ]
|
7
|
+
# ///
|
2
8
|
import time
|
3
9
|
import threading
|
4
10
|
import io
|
@@ -12,7 +18,7 @@ import re
|
|
12
18
|
import itertools
|
13
19
|
import signal
|
14
20
|
|
15
|
-
version = '1.
|
21
|
+
version = '1.21'
|
16
22
|
__version__ = version
|
17
23
|
|
18
24
|
__running_threads = []
|
@@ -236,6 +242,11 @@ def __run_command(task,sem, timeout=60, quiet=False,dry_run=False,with_stdErr=Fa
|
|
236
242
|
if not quiet:
|
237
243
|
print(pre+'\n'+ '-'*100+post)
|
238
244
|
print(pre+f'Process exited with return code {task.returncode}'+post)
|
245
|
+
# if file not found
|
246
|
+
except FileNotFoundError as e:
|
247
|
+
task.stdout.append(f'Command / path not found: {task.command[0]}')
|
248
|
+
task.stderr.append(str(e))
|
249
|
+
task.returncode = 127
|
239
250
|
except Exception as e:
|
240
251
|
import traceback
|
241
252
|
task.stderr.extend(str(e).split('\n'))
|
multiCMD-1.20.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
multiCMD.py,sha256=5OOmn_3szuEQp4RVS9nDDeEL9cfzQzSLRDJ_qIM0_tw,16788
|
2
|
-
multiCMD-1.20.dist-info/METADATA,sha256=-8Yhw0mFiNK6-YiJocXtWV9ANLHGGdSGwoU6XLtRXdw,5640
|
3
|
-
multiCMD-1.20.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
4
|
-
multiCMD-1.20.dist-info/entry_points.txt,sha256=nSLBkYrcUCQxt1w3LIJkvgOhpRYEC0xAPqNG7u4OYs8,89
|
5
|
-
multiCMD-1.20.dist-info/top_level.txt,sha256=DSqgftD40G09F3qEjpHRCUNUsGUvGZZG69Sm3YEUiWI,9
|
6
|
-
multiCMD-1.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|