nushell/crates/nu-data/src
Leonhard Kipp c42b588782
Refactor nu-cli/env* (#3041)
* Revert "History, more test coverage improvements, and refactorings. (#3217)"

This reverts commit 8fc8fc89aa.

* Add tests

* Refactor .nu-env

* Change logic of Config write to logic of read()

* Fix reload always appends to old vars

* Fix reload always takes last_modified of global config

* Add reload_config in evaluation context

* Reload config after writing to it in cfg set / cfg set_into

* Add --no-history to cli options

* Use --no-history in tests

* Add comment about maybe_print_errors

* Get ctrl_exit var from context.global_config

* Use context.global_config in command "config"

* Add Readme in engine how env vars are now handled

* Update docs from autoenv command

* Move history_path from engine to nu_data

* Move load history out of if

* No let before return

* Add import for indexmap
2021-03-31 18:52:34 +13:00
..
base Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
config Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
utils Move command changes. Refactorings. (#2683) 2020-10-20 04:07:13 -05:00
base.rs hopefully fixes the coercion error when comparing $nothing to $var (#3133) 2021-03-05 14:07:54 -06:00
command.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
config.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
dict.rs allow str from to convert more things to string (#2977) 2021-01-29 07:43:35 -06:00
keybinding.rs move keybinding_path to nu-data (#2927) 2021-01-14 06:31:47 +13:00
lib.rs move keybinding_path to nu-data (#2927) 2021-01-14 06:31:47 +13:00
primitive.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
types.rs Rename the Path and Pattern primitives (#2889) 2021-01-08 20:30:41 +13:00
value.rs add nu-ansi-term (#3089) 2021-02-22 12:33:34 -06:00