nushell/crates
Jakub Žádník 5459d30a24
Add environment variable support for modules (#331)
* Add 'expor env' dummy command

* (WIP) Abstract away module exportables as Overlay

* Switch to Overlays for use/hide

Works for decls only right now.

* Fix passing import patterns of hide to eval

* Simplify use/hide of decls

* Add ImportPattern as Expr; Add use env eval

Still no parsing of "export env" so I can't test it yet.

* Refactor export parsing; Add InternalError

* Add env var export and activation; Misc changes

Now it is possible to `use` env var that was exported from a module.

This commit also adds some new errors and other small changes.

* Add env var hiding

* Fix eval not recognizing hidden decls

Without this change, calling `hide foo`, the evaluator does not know
whether a custom command named "foo" was hidden during parsing,
therefore, it is not possible to reliably throw an error about the "foo"
name not found.

* Add use/hide/export env var tests; Cleanup; Notes

* Ignore hide env related tests for now

* Fix main branch merge mess

* Fixed multi-word export def

* Fix hiding tests on Windows

* Remove env var hiding for now
2021-11-16 12:16:06 +13:00
..
nu-cli try to match most of nushell syntax coloring (#323) 2021-11-11 06:55:10 +13:00
nu-command Add environment variable support for modules (#331) 2021-11-16 12:16:06 +13:00
nu-engine Add environment variable support for modules (#331) 2021-11-16 12:16:06 +13:00
nu-json Add 'to json' 2021-10-29 19:26:29 +13:00
nu-parser Add environment variable support for modules (#331) 2021-11-16 12:16:06 +13:00
nu-path Add config file loading 2021-10-13 16:57:05 +13:00
nu-plugin capnp proto change schema (#304) 2021-11-08 10:43:32 +13:00
nu-protocol Add environment variable support for modules (#331) 2021-11-16 12:16:06 +13:00
nu-table enable ls_colors for the ls command (#340) 2021-11-15 14:09:17 -06:00
nu-term-grid clean up some todo comments in grid 2021-10-14 08:03:20 -05:00
nu_plugin_inc Add updating cell paths 2021-11-05 16:59:12 +13:00