bare-script 3.7.3__tar.gz → 3.7.5__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.7.3/src/bare_script.egg-info → bare_script-3.7.5}/PKG-INFO +1 -1
- {bare_script-3.7.3 → bare_script-3.7.5}/setup.cfg +1 -1
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/args.bare +5 -2
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/model.py +3 -8
- {bare_script-3.7.3 → bare_script-3.7.5/src/bare_script.egg-info}/PKG-INFO +1 -1
- {bare_script-3.7.3 → bare_script-3.7.5}/LICENSE +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/README.md +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/pyproject.toml +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/__init__.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/__main__.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/bare.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/baredoc.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/data.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/__init__.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/dataTable.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/diff.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/forms.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/markdownUp.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/pager.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/unittest.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/unittestMock.bare +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/library.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/options.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/parser.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/runtime.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/value.py +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/requires.txt +0 -0
- {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/top_level.txt +0 -0
|
@@ -185,8 +185,11 @@ endfunction
|
|
|
185
185
|
|
|
186
186
|
# $function: argsHelp
|
|
187
187
|
# $group: args.bare
|
|
188
|
-
# $doc:
|
|
188
|
+
# $doc: Generate the [arguments model's](includeModel.html#var.vName='ArgsArguments') help content
|
|
189
|
+
# $doc:
|
|
190
|
+
# $doc: **NOTE:** Calling this function requires `include <dataTable.bare>`
|
|
189
191
|
# $arg arguments: The [arguments model](includeModel.html#var.vName='ArgsArguments')
|
|
192
|
+
# $return: The array of help Markdown line strings
|
|
190
193
|
function argsHelp(arguments):
|
|
191
194
|
# Create the help data
|
|
192
195
|
helpData = []
|
|
@@ -225,7 +228,7 @@ function argsHelp(arguments):
|
|
|
225
228
|
if anyDescription:
|
|
226
229
|
arrayPush(helpFields, 'Description')
|
|
227
230
|
endif
|
|
228
|
-
|
|
231
|
+
return dataTableMarkdown(helpData, {'fields': helpFields})
|
|
229
232
|
endfunction
|
|
230
233
|
|
|
231
234
|
|
|
@@ -470,14 +470,9 @@ def lint_script(script):
|
|
|
470
470
|
|
|
471
471
|
# Helper to format static analysis warnings
|
|
472
472
|
def _lint_script_warning(warnings, script, statement, message):
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
lineno = statement[statement_key].get('lineNumber', '')
|
|
477
|
-
warning = f'{script_name}:{lineno}: {message}' if script_name or lineno else message
|
|
478
|
-
else:
|
|
479
|
-
warning = message
|
|
480
|
-
warnings.append(warning)
|
|
473
|
+
script_name = script.get('scriptName', '')
|
|
474
|
+
lineno = statement[next(iter(statement.keys()))].get('lineNumber', 1) if statement is not None else 1
|
|
475
|
+
warnings.append(f'{script_name}:{lineno}: {message}')
|
|
481
476
|
|
|
482
477
|
|
|
483
478
|
# Helper function to determine if an expression statement's expression is pointless
|
|
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
|