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.
- {batchfetch-1.0.6 → batchfetch-1.0.7}/PKG-INFO +1 -1
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch/batchfetch_base.py +8 -8
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch/batchfetch_cli.py +2 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch.egg-info/PKG-INFO +1 -1
- {batchfetch-1.0.6 → batchfetch-1.0.7}/setup.py +1 -1
- {batchfetch-1.0.6 → batchfetch-1.0.7}/LICENSE +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/README.md +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch/__init__.py +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch/batchfetch_git.py +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch/helpers.py +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch.egg-info/SOURCES.txt +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch.egg-info/dependency_links.txt +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch.egg-info/entry_points.txt +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch.egg-info/requires.txt +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/batchfetch.egg-info/top_level.txt +0 -0
- {batchfetch-1.0.6 → batchfetch-1.0.7}/setup.cfg +0 -0
|
@@ -41,21 +41,21 @@ class BatchFetchBase:
|
|
|
41
41
|
|
|
42
42
|
# Default
|
|
43
43
|
self.global_options_schema: Dict[Any, Any] = {
|
|
44
|
-
Optional("
|
|
45
|
-
Optional("
|
|
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("
|
|
53
|
-
Optional("
|
|
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
|
-
"
|
|
58
|
-
"
|
|
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["
|
|
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["
|
|
127
|
+
for post_exec in self["exec_after"]:
|
|
128
128
|
if not post_exec:
|
|
129
129
|
continue
|
|
130
130
|
|
|
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
|