oh-my-batch 0.4.2__tar.gz → 0.4.3__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.
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/PKG-INFO +1 -1
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/combo.py +15 -1
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/pyproject.toml +1 -1
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/LICENSE +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/README.md +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/__init__.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/__main__.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/assets/__init__.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/assets/functions.sh +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/batch.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/cli.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/job.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/misc.py +0 -0
- {oh_my_batch-0.4.2 → oh_my_batch-0.4.3}/oh_my_batch/util.py +0 -0
@@ -221,7 +221,7 @@ class ComboMaker:
|
|
221
221
|
|
222
222
|
For example,
|
223
223
|
|
224
|
-
run_cmd "cp {
|
224
|
+
run_cmd "cp {DATA_FILE} ./path/to/workdir/{i}/data.txt"
|
225
225
|
|
226
226
|
will copy each file in DATA_FILE to ./path/to/workdir/{i}/data.txt
|
227
227
|
|
@@ -237,6 +237,20 @@ class ComboMaker:
|
|
237
237
|
raise RuntimeError(f"Failed to run command: {_cmd}")
|
238
238
|
return self
|
239
239
|
|
240
|
+
def show_combos(self):
|
241
|
+
combos = self._make_combos()
|
242
|
+
if not combos:
|
243
|
+
print("No combos")
|
244
|
+
keys = combos[0].keys()
|
245
|
+
|
246
|
+
for i, combo in enumerate(combos):
|
247
|
+
print(f"> Combo {i}:")
|
248
|
+
for k in keys:
|
249
|
+
v = str(combo[k])
|
250
|
+
if '\n' in v:
|
251
|
+
v = f"\n{v}"
|
252
|
+
print(f"@{k}: {v}")
|
253
|
+
|
240
254
|
def done(self):
|
241
255
|
"""
|
242
256
|
End of command chain
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|