nushell/crates/nu-command/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
..
commands Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
examples Minimal markdown syntax per element support. (#2997) 2021-02-02 12:09:19 -05:00
utils Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
commands.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
examples.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
futures.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
lib.rs Move script to nu engine (#3092) 2021-03-12 18:20:54 +13:00
prelude.rs Move script to nu engine (#3092) 2021-03-12 18:20:54 +13:00
utils.rs Ensure selection of columns are done once per column (#3012) 2021-02-05 19:34:26 -05:00