A new type of shell
Go to file
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
.github/workflows Try to simplify ci (#314) 2021-11-09 19:14:14 +13:00
crates Add environment variable support for modules (#331) 2021-11-16 12:16:06 +13:00
src Add environment variable support for modules (#331) 2021-11-16 12:16:06 +13:00
.gitignore WIP: output ls as a grid vs table 2021-10-05 08:43:20 -05:00
Cargo.lock enable ls_colors for the ls command (#340) 2021-11-15 14:09:17 -06:00
Cargo.toml Bump crossterm (#315) 2021-11-09 19:47:22 +13:00
LICENSE Create LICENSE 2021-10-07 06:36:28 +13:00
README.md update readme 2021-10-21 20:18:51 -07:00
TODO.md Add support for crlf for line continuations (#341) 2021-11-16 07:33:33 +13:00

Engine-q

Engine-q is an experimental project to replace the core functionality in Nushell (parser, engine, protocol). It's still in an alpha state, and there is still a lot to do: please see TODO.md

If you'd like to help out, come join us on the discord or propose some work in an issue or PR draft. We're currently looking to begin porting Nushell commands to engine-q.

If you are interested in porting a command from Nushell to engine-q you are welcome to comment on this issue 242 with the command name you would like to port.