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.
Files changed (31) hide show
  1. {bare_script-3.7.3/src/bare_script.egg-info → bare_script-3.7.5}/PKG-INFO +1 -1
  2. {bare_script-3.7.3 → bare_script-3.7.5}/setup.cfg +1 -1
  3. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/args.bare +5 -2
  4. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/model.py +3 -8
  5. {bare_script-3.7.3 → bare_script-3.7.5/src/bare_script.egg-info}/PKG-INFO +1 -1
  6. {bare_script-3.7.3 → bare_script-3.7.5}/LICENSE +0 -0
  7. {bare_script-3.7.3 → bare_script-3.7.5}/README.md +0 -0
  8. {bare_script-3.7.3 → bare_script-3.7.5}/pyproject.toml +0 -0
  9. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/__init__.py +0 -0
  10. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/__main__.py +0 -0
  11. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/bare.py +0 -0
  12. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/baredoc.py +0 -0
  13. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/data.py +0 -0
  14. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/__init__.py +0 -0
  15. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/dataTable.bare +0 -0
  16. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/diff.bare +0 -0
  17. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/forms.bare +0 -0
  18. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/markdownUp.bare +0 -0
  19. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/pager.bare +0 -0
  20. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/unittest.bare +0 -0
  21. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/include/unittestMock.bare +0 -0
  22. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/library.py +0 -0
  23. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/options.py +0 -0
  24. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/parser.py +0 -0
  25. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/runtime.py +0 -0
  26. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script/value.py +0 -0
  27. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/SOURCES.txt +0 -0
  28. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/dependency_links.txt +0 -0
  29. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/entry_points.txt +0 -0
  30. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/requires.txt +0 -0
  31. {bare_script-3.7.3 → bare_script-3.7.5}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 3.7.3
3
+ Version: 3.7.5
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = bare-script
3
- version = 3.7.3
3
+ version = 3.7.5
4
4
  url = https://github.com/craigahobbs/bare-script
5
5
  author = Craig A. Hobbs
6
6
  author_email = craigahobbs@gmail.com
@@ -185,8 +185,11 @@ endfunction
185
185
 
186
186
  # $function: argsHelp
187
187
  # $group: args.bare
188
- # $doc: Output the [arguments model's](includeModel.html#var.vName='ArgsArguments') help
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
- dataTable(helpData, {'fields': helpFields})
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
- if script and statement:
474
- statement_key = next(iter(statement.keys()))
475
- script_name = script.get('scriptName', '')
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 3.7.3
3
+ Version: 3.7.5
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
File without changes
File without changes
File without changes