nushell/crates/nu-cli/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
..
completion support forward slash for directory completion in Windows (#3201) 2021-03-23 16:20:01 +13:00
shell Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
types Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
cli.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
format.rs Nu table (#2015) 2020-06-20 15:41:53 +12:00
keybinding.rs imp: bump rustyline to 8.0.0 (#3167) 2021-03-14 15:13:31 +13:00
lib.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
line_editor.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
prelude.rs Fix latest clippy warnings (#3049) 2021-02-12 23:13:14 +13:00
shell.rs Split nu-cli into nu-cli/nu-engine (#2898) 2021-01-10 15:50:49 +13:00
types.rs Change alias shape inference to proposal of RFC#4 (#2685) 2020-10-29 06:49:38 +13:00