batchfetch 1.0.6__tar.gz → 1.0.7__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: batchfetch
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Efficiently clone and pull multiple Git repositories.
5
5
  Home-page: https://github.com/jamescherti/batchfetch
6
6
  Author: James Cherti
@@ -41,21 +41,21 @@ class BatchFetchBase:
41
41
 
42
42
  # Default
43
43
  self.global_options_schema: Dict[Any, Any] = {
44
- Optional("pre_exec"): Or([str], str),
45
- Optional("post_exec"): Or([str], str),
44
+ Optional("exec_before"): Or([str], str),
45
+ Optional("exec_after"): Or([str], str),
46
46
  }
47
47
 
48
48
  self.item_schema: Dict[Any, Any] = {
49
49
  Optional("path"): str,
50
50
  Optional("delete"): bool,
51
51
 
52
- Optional("pre_exec"): Or([str], str),
53
- Optional("post_exec"): Or([str], str),
52
+ Optional("exec_before"): Or([str], str),
53
+ Optional("exec_after"): Or([str], str),
54
54
  }
55
55
 
56
56
  self.global_options_values: Dict[str, Any] = {
57
- "pre_exec": [],
58
- "post_exec": [],
57
+ "exec_before": [],
58
+ "exec_after": [],
59
59
  }
60
60
 
61
61
  self.item_default_values: Dict[str, Any] = {
@@ -112,7 +112,7 @@ class BatchFetchBase:
112
112
 
113
113
  def _run_pre_exec(self, cwd: os.PathLike = Path(".")):
114
114
  self._initialize_data()
115
- for pre_exec in self["pre_exec"]:
115
+ for pre_exec in self["exec_before"]:
116
116
  if not pre_exec:
117
117
  continue
118
118
 
@@ -124,7 +124,7 @@ class BatchFetchBase:
124
124
  if self["delete"] or not self.is_changed():
125
125
  return
126
126
 
127
- for post_exec in self["post_exec"]:
127
+ for post_exec in self["exec_after"]:
128
128
  if not post_exec:
129
129
  continue
130
130
 
@@ -229,6 +229,8 @@ def parse_args():
229
229
  )
230
230
 
231
231
  args = parser.parse_args()
232
+ if not args.batchfetch_files:
233
+ args.batchfetch_files = ["./batchfetch.yaml"]
232
234
 
233
235
  for batchfetch_file in args.batchfetch_files:
234
236
  if not Path(batchfetch_file).is_file():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: batchfetch
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Efficiently clone and pull multiple Git repositories.
5
5
  Home-page: https://github.com/jamescherti/batchfetch
6
6
  Author: James Cherti
@@ -22,7 +22,7 @@ from setuptools import find_packages, setup
22
22
 
23
23
  setup(
24
24
  name="batchfetch",
25
- version="1.0.6",
25
+ version="1.0.7",
26
26
  packages=find_packages(),
27
27
  description="Efficiently clone and pull multiple Git repositories.",
28
28
  license="GPLv3",
File without changes
File without changes
File without changes