bare-script 4.2.1__tar.gz → 4.2.2__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-4.2.1/src/bare_script.egg-info → bare_script-4.2.2}/PKG-INFO +9 -1
- {bare_script-4.2.1 → bare_script-4.2.2}/README.md +8 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/setup.cfg +1 -1
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/data.bare +5 -2
- {bare_script-4.2.1 → bare_script-4.2.2/src/bare_script.egg-info}/PKG-INFO +9 -1
- {bare_script-4.2.1 → bare_script-4.2.2}/LICENSE +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/pyproject.toml +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/setup.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/__init__.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/__main__.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/bare.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/__init__.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/args.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/baredoc.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/baredocCLI.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/dataLineChart.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/dataTable.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/dataUtil.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/diff.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/draw.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/elementModel.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/forms.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/markdown.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/markdownElements.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/markdownHighlight.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/markdownParser.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/markdownUp.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/pager.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/qrcode.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/schemaDoc.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/unittest.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/include/unittestMock.bare +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/library.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/model.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/options.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/parser.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/runtime.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/runtime_c.c +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script/value.py +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/src/bare_script.egg-info/requires.txt +0 -0
- {bare_script-4.2.1 → bare_script-4.2.2}/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: 4.2.
|
|
3
|
+
Version: 4.2.2
|
|
4
4
|
Summary: bare-script
|
|
5
5
|
Home-page: https://github.com/craigahobbs/bare-script
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -224,6 +224,14 @@ Once installed, you can prompt the assistant with tasks like:
|
|
|
224
224
|
> Build a MarkdownUp application that plays tic-tac-toe against the user, with a reset button
|
|
225
225
|
> and a running win/loss/draw tally rendered as a bar chart.
|
|
226
226
|
|
|
227
|
+
To run the resulting MarkdownUp application locally, install the
|
|
228
|
+
[markdown-up](https://pypi.org/project/markdown-up/) viewer and point it at the Markdown file:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
pip install markdown-up
|
|
232
|
+
markdown-up yourApp.md
|
|
233
|
+
```
|
|
234
|
+
|
|
227
235
|
The BareScript library is also documented as single-page Markdown, which can be fetched directly
|
|
228
236
|
into an assistant's context alongside `SKILL.md`:
|
|
229
237
|
|
|
@@ -199,6 +199,14 @@ Once installed, you can prompt the assistant with tasks like:
|
|
|
199
199
|
> Build a MarkdownUp application that plays tic-tac-toe against the user, with a reset button
|
|
200
200
|
> and a running win/loss/draw tally rendered as a bar chart.
|
|
201
201
|
|
|
202
|
+
To run the resulting MarkdownUp application locally, install the
|
|
203
|
+
[markdown-up](https://pypi.org/project/markdown-up/) viewer and point it at the Markdown file:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
pip install markdown-up
|
|
207
|
+
markdown-up yourApp.md
|
|
208
|
+
```
|
|
209
|
+
|
|
202
210
|
The BareScript library is also documented as single-page Markdown, which can be fetched directly
|
|
203
211
|
into an assistant's context alongside `SKILL.md`:
|
|
204
212
|
|
|
@@ -549,7 +549,10 @@ dataAggregationTypes = schemaParse( \
|
|
|
549
549
|
# $group: data.bare
|
|
550
550
|
# $doc: Sort a data array
|
|
551
551
|
# $arg data: The data array
|
|
552
|
-
# $arg sorts: The sort
|
|
552
|
+
# $arg sorts: The array of sort tuples. Each tuple is a one- or two-element array, \[field\] or
|
|
553
|
+
# $arg sorts: \[field, descending\]. "field" is the field name to sort by. "descending" is an
|
|
554
|
+
# $arg sorts: optional boolean - if true, the field is sorted in descending order (default is
|
|
555
|
+
# $arg sorts: ascending).
|
|
553
556
|
# $return: The sorted data array
|
|
554
557
|
function dataSort(data, sorts):
|
|
555
558
|
return arraySort(data, systemPartial(dataSortCompare, sorts))
|
|
@@ -561,7 +564,7 @@ function dataSortCompare(sorts, row1, row2):
|
|
|
561
564
|
result = 0
|
|
562
565
|
for sort in sorts:
|
|
563
566
|
field = arrayGet(sort, 0)
|
|
564
|
-
result = if(arrayGet(sort, 1), \
|
|
567
|
+
result = if(arrayLength(sort) >= 2 && arrayGet(sort, 1), \
|
|
565
568
|
systemCompare(objectGet(row2, field), objectGet(row1, field)), \
|
|
566
569
|
systemCompare(objectGet(row1, field), objectGet(row2, field)))
|
|
567
570
|
if result != 0:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bare-script
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.2
|
|
4
4
|
Summary: bare-script
|
|
5
5
|
Home-page: https://github.com/craigahobbs/bare-script
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -224,6 +224,14 @@ Once installed, you can prompt the assistant with tasks like:
|
|
|
224
224
|
> Build a MarkdownUp application that plays tic-tac-toe against the user, with a reset button
|
|
225
225
|
> and a running win/loss/draw tally rendered as a bar chart.
|
|
226
226
|
|
|
227
|
+
To run the resulting MarkdownUp application locally, install the
|
|
228
|
+
[markdown-up](https://pypi.org/project/markdown-up/) viewer and point it at the Markdown file:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
pip install markdown-up
|
|
232
|
+
markdown-up yourApp.md
|
|
233
|
+
```
|
|
234
|
+
|
|
227
235
|
The BareScript library is also documented as single-page Markdown, which can be fetched directly
|
|
228
236
|
into an assistant's context alongside `SKILL.md`:
|
|
229
237
|
|
|
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
|
|
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
|