nushell/crates/nu-protocol/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
..
value Playground infraestructure (tests, etc) additions. (#3179) 2021-03-15 02:26:30 -05:00
call_info.rs Match cleanup (#2248) 2020-07-25 08:40:35 -04:00
config_path.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
hir.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
lib.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
macros.rs Flush out! lines, helps autoview (#2952) 2021-01-20 07:23:37 +13:00
maybe_owned.rs Add more comments (#1228) 2020-01-16 05:28:31 +13:00
return_value.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
signature.rs allow str from to convert more things to string (#2977) 2021-01-29 07:43:35 -06:00
syntax_shape.rs allow str from to convert more things to string (#2977) 2021-01-29 07:43:35 -06:00
type_name.rs More docs and random fixes (#1237) 2020-01-19 08:42:36 +13:00
type_shape.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
value.rs Add exit code argument (#3132) 2021-03-06 18:46:27 +13:00