nushell/crates/nu-cli/src
Jakub Žádník 6a0f404558
Treating environment variables as Values (#497)
* Proof of concept treating env vars as Values

* Refactor env var collection and method name

* Remove unnecessary pub

* Move env translations into a new file

* Fix LS_COLORS to support any Value

* Fix spans during env var translation

* Add span to env var in cd

* Improve error diagnostics

* Fix non-string env vars failing string conversion

* Make PROMPT_COMMAND a Block instead of String

* Record host env vars to a fake file

This will give spans to env vars that would otherwise be without one.
Makes errors less confusing.

* Add 'env' command to list env vars

It will list also their values translated to strings

* Sort env command by name; Add env var type

* Remove obsolete test
2021-12-17 12:04:54 +11:00
..
completions.rs Better filepath completions (#485) 2021-12-13 17:46:30 +11:00
errors.rs Reset ansi more often when showing errors (#425) 2021-12-04 18:02:57 +13:00
lib.rs Reset ansi more often when showing errors (#425) 2021-12-04 18:02:57 +13:00
prompt.rs Treating environment variables as Values (#497) 2021-12-17 12:04:54 +11:00
syntax_highlight.rs allow flatshape (command line syntax) theming (#502) 2021-12-16 06:17:29 -06:00
validation.rs WIP 2021-10-26 05:58:58 +13:00