dea9c1482b
Allow vars and subexprs in extern args
2021-10-09 10:51:47 +13:00
1b977c658c
Improve the alias expansion
2021-10-09 08:38:42 +13:00
7eb022b58c
Adapt tk's work for a source command
2021-10-06 15:29:05 +13:00
d481d5ca96
Merge branch 'main' of https://github.com/nushell/engine-q into source-command
2021-10-05 22:16:07 -04:00
996ee363b7
comments
2021-10-05 22:03:18 -04:00
011ad2e4e6
Merge branch 'source-command' of https://github.com/moonrise-tk/engine-q into source-command
2021-10-05 21:59:26 -04:00
d6d0bad7aa
reverted
2021-10-05 21:59:16 -04:00
e1ebd461d2
Bump to 0.28 ( #4064 )
2021-10-06 06:35:25 +13:00
535ece4e76
Add unit parsing and eval support
2021-10-05 15:27:39 +13:00
26166192e5
Merge pull request #89 from kubouch/hide-import-patterns
...
Add import patterns to 'hide'
2021-10-05 10:44:13 +13:00
6f5f1fa43a
Clippy
2021-10-04 22:37:43 +03:00
a88058006a
Add path completions
2021-10-05 08:21:31 +13:00
4dacfaa44a
Add import pattern support to 'hide'
2021-10-04 20:08:24 +03:00
dfd321a679
Merge branch 'main' into source-command
2021-10-03 14:25:00 -04:00
909b7d2160
no-op
2021-10-03 14:23:23 -04:00
81cd03626d
Merge branch 'main' into module-export
2021-10-02 18:53:35 +03:00
5843acec02
Add wrap and get and cell_path parsing
2021-10-02 15:59:11 +13:00
8ef16c6da6
add source command
2021-10-01 22:25:35 -04:00
e1a0ad2987
fix more merge conflicts
2021-10-01 22:24:43 -04:00
16c60f44d5
merge w/ upstream
2021-10-01 22:09:16 -04:00
adb92b970e
nothing
2021-10-01 22:07:17 -04:00
6595c06598
Relax panic into error
...
Convert the panic when declaration cannot find predeclaration into an
error. This error is already covered and reported in the predeclaration
phase.
2021-10-02 03:42:35 +03:00
25b05dec9e
Fix panic on double def; Tests; Double def error
...
* Fixes a panic with defining two commands with the same name caused by
declaration not found after predeclaration.
* Adds a new error if a custom command is defined more than once in one
block.
* Add some tests
2021-10-01 23:25:24 +03:00
2af8116f50
Fix hiding logic; Fix hiding with predecls
...
* Hiding logic is simplified and fixed so you can hide and unhide the
same def repeatedly.
* Separates predeclared ids into its own data structure to protect them
from hiding. Otherwise, you could hide the predeclared variable and
the actual def would panic.
2021-10-01 23:24:57 +03:00
7488254cca
Implement a rough version of 'hide'
...
'hide' command is used to undefine custom commands
2021-10-01 23:24:54 +03:00
3cbf99053f
Throw an error if using export outside of module
2021-10-01 23:21:30 +03:00
93521da9d8
Add 'export def' command
2021-10-01 23:21:28 +03:00
561feff365
Introduce 'export' keyword
2021-10-01 23:19:39 +03:00
1b89ccf25b
Add comment
2021-10-01 23:19:39 +03:00
e00755a2e9
fix compile errors
2021-09-30 23:04:56 -04:00
4e0d7bc77c
Less deps ( #4038 )
...
* compiles on nightly now. (breaking change)
* less deps
* Switch over to new resolver
(it's been stable for a while.)
* let's leave num-format for another PR
2021-09-28 07:17:00 +13:00
719920fa37
tried to move source command into parser (still doesn't compile)
2021-09-27 08:10:18 -04:00
84d0e0a059
More forgiving def parse
2021-09-27 14:03:50 +13:00
0a48bc973d
Merge pull request #72 from nushell/import_patterns
...
Add import lists
2021-09-27 13:32:36 +13:00
0108a935ed
add import lists
2021-09-27 13:23:22 +13:00
9ee4dc49ee
Fix wrong error span
2021-09-27 00:02:20 +03:00
abb0d7bd22
Add support for module imports
2021-09-27 07:39:19 +13:00
f57f7b2def
Allow adding definitions from module into scope
2021-09-26 13:53:52 +03:00
9e176674a5
Start parsing 'use'; Add Use command
2021-09-26 13:25:52 +03:00
12cf1a8f83
Allow adding module blocks to engine state
2021-09-26 12:12:32 +03:00
e9f1575924
Add a module command
2021-09-26 01:59:18 +03:00
a176f12c9e
Start simple module parsing
2021-09-25 17:14:20 +03:00
5d442a287f
deps: bump to miette 3.0 mainline
2021-09-22 16:50:57 -07:00
0ccbebee7a
multiline validation
2021-09-22 17:29:53 +12:00
2553da3dc4
bump miette to fix multi-file rendering bug
2021-09-21 17:57:16 -07:00
32f39c2fb8
use miette's new panic hook
2021-09-21 12:47:52 -07:00
c87414e462
Fix issue with unexpected EOF rendering in miette
2021-09-21 09:30:43 -07:00
3c18cac134
use the fancy
2021-09-21 16:10:29 +12:00
4841d62d76
Add some improvements to errors
2021-09-21 16:03:06 +12:00
a1d6cefdf8
replace codespan-reporting with miette 3.0
2021-09-20 17:14:20 -07:00