JT
a1f7a3c17b
improve int division to be more nushell-like
2021-09-06 17:35:58 +12:00
JT
76c92fc706
Merge pull request #21 from jntrnr/simple_value_iteration
...
Simple value iteration
2021-09-06 16:21:13 +12:00
JT
9b56221b5c
Merge branch 'main' into simple_value_iteration
2021-09-06 16:16:48 +12:00
JT
3b99ce71a0
add simple value iteration
2021-09-06 16:16:32 +12:00
JT
5f4cc50ce7
Merge pull request #20 from jntrnr/range_iterators
...
Range iteration
2021-09-06 16:11:05 +12:00
JT
96b0edf9b0
range iteration
2021-09-06 16:07:48 +12:00
JT
9e7d96ea50
Update TODO.md
2021-09-06 14:40:55 +12:00
JT
faa53de893
Merge pull request #19 from jntrnr/block_params
...
Block params
2021-09-06 14:25:07 +12:00
JT
b930fc5d9d
updated TODO
2021-09-06 14:22:58 +12:00
JT
979faf853a
Block params
2021-09-06 14:20:02 +12:00
JT
aaee3a8b61
WIP
2021-09-06 11:16:27 +12:00
JT
036c6a9a52
Merge pull request #18 from elferherrera/update-dependencies
...
Updated dependencies
2021-09-06 07:09:24 +12:00
Fernando Herrera
b3d287815d
updated dependencies
2021-09-05 20:06:57 +01:00
JT
fda7e096cd
Merge pull request #17 from jntrnr/fix_15
...
Fix #15
2021-09-06 06:48:59 +12:00
JT
57677a50b5
Fix #15
2021-09-06 06:44:18 +12:00
JT
6f17695891
Merge pull request #16 from kubouch/ranges-new
...
Implement positive integer ranges
2021-09-06 06:23:13 +12:00
JT
6ebc97dec2
Update parser.rs
2021-09-06 06:09:36 +12:00
Jakub Žádník
56c8987e0f
Add '.' and '-' to restricted characters
...
This means that commands cannot start with these characters.
However, we get the following benefits:
* Negative numbers > -10
* Ranges with negative numbers > -10..-1
* Left-unbounded ranges > ..10
2021-09-05 20:33:53 +03:00
Jakub Žádník
7ae4ca88b6
"Fix" failing CI
2021-09-05 11:03:04 +03:00
Jakub Žádník
f0d469f1d4
Fix clippy warnings
2021-09-05 01:40:15 +03:00
Jakub Žádník
6b4fee88c9
Fmt
2021-09-05 01:35:08 +03:00
Jakub Žádník
672fa852b3
Add some tests to range parsing
2021-09-05 01:25:31 +03:00
Jakub Žádník
0b412cd6b3
Add support for positive integer ranges
...
Including support for variables and subexpressions as range bounds.
2021-09-05 00:52:57 +03:00
Tw
ae9f4135c0
support appending when saving file ( #3992 )
...
This patch implements `>>` operation in bash.
Signed-off-by: Tw <tw19881113@gmail.com>
2021-09-05 06:12:08 +12:00
JT
2794556eaa
Merge pull request #14 from elferherrera/similar-name
...
Similar name check to protocol
2021-09-04 20:26:46 +12:00
JT
a26c42a9b6
Update ci.yml
2021-09-04 20:22:49 +12:00
Fernando Herrera
331ccd544f
workflow on pull_request
2021-09-04 09:22:09 +01:00
Fernando Herrera
d6b1ff932a
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 09:20:35 +01:00
JT
26b1f022b7
fixup
2021-09-04 20:19:07 +12:00
Fernando Herrera
ab307c8d38
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 09:10:38 +01:00
Fernando Herrera
a3d4794341
moved test to protocol
2021-09-04 09:10:31 +01:00
JT
25c7d8ead6
Merge pull request #13 from jntrnr/ci
...
Add CI
2021-09-04 20:09:05 +12:00
JT
2834d71a12
improve ci
2021-09-04 20:05:36 +12:00
JT
bf9b6d8088
improve ci
2021-09-04 20:02:57 +12:00
JT
d9cff4238d
clippy
2021-09-04 19:59:38 +12:00
JT
198a36b744
Add CI
2021-09-04 19:52:28 +12:00
JT
f259992b4b
Merge pull request #12 from elferherrera/similar-name
...
Similar name check for signature
2021-09-04 19:49:36 +12:00
Fernando Herrera
ca8d311c78
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 08:45:55 +01:00
Fernando Herrera
acc035dbef
signature check for similar name
2021-09-04 08:45:49 +01:00
JT
5e33b8536b
Add discrete list/table
2021-09-04 18:52:28 +12:00
JT
74bb2af3e1
Fix up block parse recovery
2021-09-04 08:58:44 +12:00
JT
b20c4047d4
Some cleanup, better subexpressions
2021-09-03 19:35:29 +12:00
Andrés N. Robalino
4e2d3ceaaf
Allow knowing the command name tag given no input. ( #3988 )
...
```
tags
```
2021-09-03 01:46:15 -05:00
JT
82cf6caba4
Add do
2021-09-03 16:01:45 +12:00
JT
bc3f820227
Merge pull request #10 from jntrnr/value_streams_in_value
...
Value streams in value
2021-09-03 15:49:27 +12:00
JT
12d80c2732
Fix test
2021-09-03 15:49:14 +12:00
JT
6c0ce95d0f
Add simple each
2021-09-03 15:45:34 +12:00
JT
750502c870
Fix up for_in
2021-09-03 14:57:18 +12:00
JT
df63490266
Fix up calls and pipelines
2021-09-03 14:15:01 +12:00
Andrés N. Robalino
c9c6bd4836
Create errors from tables. ( #3986 )
...
```
> [
[ msg, labels, span];
["The message", "Helpful message here", ([[start, end]; [0, 141]])]
] | error make
error: The message
┌─ shell:1:1
│
1 │ ╭ [
2 │ │ [ msg, labels, span];
3 │ │ ["The message", "Helpful message here", ([[start, end]; [0, 141]])]
│ ╰─────────────────────────────────────────────────────────────────────^ Helpful message here
```
Adding a more flexible approach for creating error values. One use case, for instance is the
idea of a test framework. A failed assertion instead of printing to the screen it could create
tables with more details of the failed assertion and pass it to this command for making a full
fledge error that Nu can show. This can (and should) be extended for capturing error values as well
in the pipeline. One could also use it for inspection.
For example: `.... | error inspect { # inspection here }`
or "error handling" as well, like so: `.... | error capture { fix here }`
However, we start here only with `error make` that creates an error value for you with limited support for the time being.
2021-09-02 21:07:26 -05:00