bare-script 3.8.2__tar.gz → 3.8.4__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.
- {bare_script-3.8.2/src/bare_script.egg-info → bare_script-3.8.4}/PKG-INFO +1 -1
- {bare_script-3.8.2 → bare_script-3.8.4}/setup.cfg +1 -1
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/args.bare +2 -2
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/runtime.py +6 -6
- {bare_script-3.8.2 → bare_script-3.8.4/src/bare_script.egg-info}/PKG-INFO +1 -1
- {bare_script-3.8.2 → bare_script-3.8.4}/LICENSE +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/README.md +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/pyproject.toml +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/__init__.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/__main__.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/bare.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/baredoc.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/data.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/__init__.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/baredoc.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/dataLineChart.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/dataTable.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/diff.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/forms.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/markdownUp.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/pager.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/unittest.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/include/unittestMock.bare +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/library.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/model.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/options.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/parser.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script/value.py +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script.egg-info/requires.txt +0 -0
- {bare_script-3.8.2 → bare_script-3.8.4}/src/bare_script.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Licensed under the MIT License
|
|
2
2
|
# https://github.com/craigahobbs/bare-script/blob/main/LICENSE
|
|
3
3
|
|
|
4
|
+
include <dataTable.bare>
|
|
5
|
+
|
|
4
6
|
|
|
5
7
|
# The URL arguments model
|
|
6
8
|
argsTypes = schemaParse( \
|
|
@@ -179,8 +181,6 @@ endfunction
|
|
|
179
181
|
# $function: argsHelp
|
|
180
182
|
# $group: args.bare
|
|
181
183
|
# $doc: Generate the [arguments model's](model.html#var.vName='ArgsArguments') help content
|
|
182
|
-
# $doc:
|
|
183
|
-
# $doc: **NOTE:** Calling this function requires `include <dataTable.bare>`
|
|
184
184
|
# $arg arguments: The [arguments model](model.html#var.vName='ArgsArguments')
|
|
185
185
|
# $return: The array of help Markdown line strings
|
|
186
186
|
function argsHelp(arguments):
|
|
@@ -153,20 +153,20 @@ def _execute_script_helper(script, statements, options, locals_):
|
|
|
153
153
|
if system_include:
|
|
154
154
|
include_script['system'] = True
|
|
155
155
|
|
|
156
|
+
# Execute the include script
|
|
157
|
+
include_options = options.copy()
|
|
158
|
+
include_options['urlFn'] = functools.partial(url_file_relative, include_url)
|
|
159
|
+
_execute_script_helper(include_script, include_script['statements'], include_options, None)
|
|
160
|
+
|
|
156
161
|
# Run the bare-script linter?
|
|
157
162
|
if log_fn is not None and options.get('debug'):
|
|
158
|
-
warnings = lint_script(include_script)
|
|
163
|
+
warnings = lint_script(include_script, globals_)
|
|
159
164
|
if warnings:
|
|
160
165
|
warning_prefix = f'BareScript: Include "{include_url}" static analysis...'
|
|
161
166
|
log_fn(f'{warning_prefix} {len(warnings)} warning{"s" if len(warnings) > 1 else ""}:')
|
|
162
167
|
for warning in warnings:
|
|
163
168
|
log_fn(f'BareScript: {warning}')
|
|
164
169
|
|
|
165
|
-
# Execute the include script
|
|
166
|
-
include_options = options.copy()
|
|
167
|
-
include_options['urlFn'] = functools.partial(url_file_relative, include_url)
|
|
168
|
-
_execute_script_helper(include_script, include_script['statements'], include_options, None)
|
|
169
|
-
|
|
170
170
|
# Increment the statement counter
|
|
171
171
|
ix_statement += 1
|
|
172
172
|
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|