nushell/crates
Sam Hedin bf459e09cb
WIP: Per directory env-variables (#1943)
* Add args in .nurc file to environment

* Working dummy version

* Add add_nurc to sync_env command

* Parse .nurc file

* Delete env vars after leaving directory

* Removing vals not working, strangely

* Refactoring, add comment

* Debugging

* Debug by logging to file

* Add and remove env var behavior appears correct

However, it does not use existing code that well.

* Move work to cli.rs

* Parse config directories

* I am in a state of distress

* Rename .nurc to .nu

* Some notes for me

* Refactoring

* Removing vars works, but not done in a very nice fashion

* Refactor env_vars_to_delete

* Refactor env_vars_to_add()

* Move directory environment code to separate file

* Refactor from_config

* Restore env values

* Working?

* Working?

* Update comments and change var name

* Formatting

* Remove vars after leaving dir

* Remove notes I made

* Rename config function

* Clippy

* Cleanup and handle errors

* cargo fmt

* Better error messages, remove last (?) unwrap

* FORMAT PLZ

* Rename whitelisted_directories to allowed_directories

* Add comment to clarify how overwritten values are restored.
2020-06-08 19:55:25 +12:00
..
nu_plugin_binaryview Bump more deps (#1921) 2020-05-31 08:54:47 +12:00
nu_plugin_fetch Implement login for the fetch command (#1915) 2020-05-30 11:22:38 +12:00
nu_plugin_inc Bump more deps (#1921) 2020-05-31 08:54:47 +12:00
nu_plugin_match Bump to 0.14.1 (#1772) 2020-05-13 20:03:45 +12:00
nu_plugin_post Bump some of our dependencies (#1809) 2020-05-17 10:34:10 +12:00
nu_plugin_ps Bump to latest heim (#1920) 2020-05-31 08:54:33 +12:00
nu_plugin_start ISSUE-1744-Glob support for start command (#1912) 2020-05-31 05:41:25 +12:00
nu_plugin_sys Bump to latest heim (#1920) 2020-05-31 08:54:33 +12:00
nu_plugin_textview Bump more deps (#1921) 2020-05-31 08:54:47 +12:00
nu_plugin_tree Bump to 0.14.1 (#1772) 2020-05-13 20:03:45 +12:00
nu-build Bump some of our dependencies (#1809) 2020-05-17 10:34:10 +12:00
nu-cli WIP: Per directory env-variables (#1943) 2020-06-08 19:55:25 +12:00
nu-errors Move from language-reporting to codespan (#1825) 2020-05-19 06:44:27 +12:00
nu-parser Fix for inconsistency when quoted strings are used with with_env shorthand (#1900) 2020-05-26 15:03:55 -04:00
nu-plugin Add --to-float to str plugin (#1872) 2020-05-24 18:11:49 -04:00
nu-protocol Bump more deps (#1921) 2020-05-31 08:54:47 +12:00
nu-source Bump more deps (#1921) 2020-05-31 08:54:47 +12:00
nu-test-support Remove interpretation of Primitive::Nothing as the number 0. (#1836) 2020-05-18 15:18:46 -04:00
nu-value-ext Str plugin promoted to built-in Nu command. 2020-05-28 11:18:58 -05:00