Commit Graph

9149 Commits

Author SHA1 Message Date
Devyn Cairns
1cd8279ad5 remove nu/do --use-ir, add NU_USE_IR environment variable, tested at start and by do 2024-07-09 00:26:46 -07:00
Devyn Cairns
1ce2096b72 fix clippy. check pr: PASS 2024-07-08 21:10:41 -07:00
Devyn Cairns
0a399011e3 fix redirection, all tests passing 2024-07-08 20:57:02 -07:00
Devyn Cairns
7958cda54e fix double close file with out/err same 2024-07-08 20:19:21 -07:00
Devyn Cairns
6a8169e8ba add specific error for match guard bool 2024-07-08 20:13:50 -07:00
Devyn Cairns
f026a07fe3 fix has_flag on false value 2024-07-08 19:59:39 -07:00
Devyn Cairns
4878d7250f fix let: glob cast from string 2024-07-08 19:54:40 -07:00
Devyn Cairns
ea3849da17 fix all of the error handling tests, mostly by making drain handle external exit codes properly 2024-07-08 19:48:25 -07:00
Devyn Cairns
6e683cd9f5 fix argument formatting issues 2024-07-08 19:03:46 -07:00
Devyn Cairns
2d4355b573 fix issues with subpath $env.foo.bar.baz record default code 2024-07-08 19:01:20 -07:00
Devyn Cairns
74218a8fff check-external-failed is a little wider 2024-07-08 18:51:46 -07:00
Devyn Cairns
fceaefcfaf fix behavior of loops with external stream results (should terminate) 2024-07-08 18:50:56 -07:00
Devyn Cairns
5e04ab2f14 add check for a failed external call to try code 2024-07-08 17:48:14 -07:00
Devyn Cairns
855b76eb2f fix redirection to save 2024-07-08 15:50:05 -07:00
Devyn Cairns
b7225f4c0e tweak view ir desc 2024-07-08 15:27:18 -07:00
Devyn Cairns
5c5db1bd54 add check for error redirection for pipe error mode 2024-07-08 15:14:35 -07:00
Devyn Cairns
38884eec73 add explicit numbering for allocated files, fix some err redirection stuff 2024-07-08 13:58:41 -07:00
Devyn Cairns
2807717245 attempt to use a file stack for redirection, but realized that both out and err can be separate so need to be able to reference both 2024-07-07 23:08:16 -07:00
Devyn Cairns
689cc49663 support calling with the redirection mode of the caller 2024-07-07 20:17:55 -07:00
Devyn Cairns
6d199fd219
handle env var case insensitivity (should probably add these as utils elsewhere) 2024-07-06 03:20:59 -07:00
Devyn Cairns
716d016a28
throw error on redefined record key 2024-07-06 02:57:07 -07:00
Devyn Cairns
2304d71941
blocks and row conditions can contain captures, so gather them 2024-07-06 02:53:49 -07:00
Devyn Cairns
4c364519a0
fix env shorthand tests 2024-07-06 02:37:17 -07:00
Devyn Cairns
650cc95d94
fix handling of assignment of deep path env vars 2024-07-06 02:25:45 -07:00
Devyn Cairns
5cbc591094
enable IR tests for plugins 2024-07-06 01:11:25 -07:00
Devyn Cairns
9498c06631
Move custom command call stack handling back to the eval side 2024-07-06 00:55:57 -07:00
Devyn Cairns
c249922e03
move recursion_count check to the top of eval_ir_block 2024-07-05 23:56:10 -07:00
Devyn Cairns
be8637d6cc
Remove RegisterBufCache since it didn't really measurably help at all 2024-07-05 20:44:05 -07:00
Devyn Cairns
4343d1d80c
Be a little bit more helpful on register uninitialized errors, fix a bug with drain on multiple pipelines 2024-07-05 20:43:40 -07:00
Devyn Cairns
4cf6bd6fb0 fix overlay by handling keyword expression as just the inner expression 2024-07-05 05:41:08 -07:00
Devyn Cairns
c74f821759 export-env 2024-07-05 05:32:58 -07:00
Devyn Cairns
250bcd3bc2 only limit callee stacks 2024-07-05 05:31:16 -07:00
Devyn Cairns
6e6cd00512 add recursion limit to ir eval 2024-07-05 05:24:08 -07:00
Devyn Cairns
4b56fba7d6 add datetime expression, remove todo compileerror 2024-07-05 05:17:49 -07:00
Devyn Cairns
c7a86cf75e make timeit and metadata work through hack that's ok for now 2024-07-05 05:08:52 -07:00
Devyn Cairns
2590f609ce
try to handle unknown args 2024-07-04 17:18:42 -07:00
Devyn Cairns
c92de3a242
redirect_env 2024-07-04 17:16:58 -07:00
Devyn Cairns
49f93470a1
reuse RegisterBufCache? 2024-07-04 17:05:27 -07:00
Devyn Cairns
4ff41e5817 micro-optimizing a bit 2024-07-04 04:17:44 -07:00
Devyn Cairns
c3712f4337
more tests 2024-07-04 00:48:29 -07:00
Devyn Cairns
6398f0e31e
literal ValueWithUnit (filesize, duration) 2024-07-04 00:48:23 -07:00
Devyn Cairns
c06ec8afee
fix --help, alias 2024-07-03 22:09:46 -07:00
Devyn Cairns
5c419a39e8
custom commands, fix let, fix bare $env var 2024-07-03 20:15:00 -07:00
Devyn Cairns
d33d21e1dc
row condition, fix table literal 2024-07-03 17:51:20 -07:00
Devyn Cairns
062821039a
match support 2024-07-03 17:36:26 -07:00
Devyn Cairns
3bdb864b9d
clean up unexpected 2024-07-03 15:25:15 -07:00
Devyn Cairns
1294d0f710
remove unused import 2024-07-03 14:41:36 -07:00
Devyn Cairns
ae0651127d
string interpolation: don't trust type checking, only start from strings if they're literals 2024-07-03 00:18:32 -07:00
Devyn Cairns
52ec0c3b1d
fix parser info: actually add it to the call 2024-07-03 00:17:09 -07:00
Devyn Cairns
3c33a3f4eb
try/catch with catch as an expression rather than literal block 2024-07-03 00:04:46 -07:00