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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oh-my-batch
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary:
5
5
  License: GPL
6
6
  Author: weihong.xu
@@ -221,7 +221,7 @@ class ComboMaker:
221
221
 
222
222
  For example,
223
223
 
224
- run_cmd "cp {DATA_FIEL} ./path/to/workdir/{i}/data.txt"
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "oh-my-batch"
3
- version = "0.4.2"
3
+ version = "0.4.3"
4
4
  description = ""
5
5
  authors = ["weihong.xu <xuweihong.cn@gmail.com>"]
6
6
  license = "GPL"
File without changes
File without changes