nushell/crates/nu-engine/src
Jakub Žádník cc5c4d38bb
Small fixes and refactors to paths & source command (#3998)
* Expand path when converting value -> PathBuf

Also includes Tagged<PathBuf>.

Fixes #3605

* Expand path for PATH env. variable

Fixes #1834

* Remove leftover Cows after nu-path refactor

There were some unnecessary Cow conversions leftover from the old
nu-path implementation.

* Use canonicalize in source command; Improve errors

Previously, `source` used `expand_path()` which does not follow
symlinks.

As a follow up, I improved the source error messages so they now tell
why the source file could not be canonicalized or read into string.
2021-09-12 02:36:14 +03:00
..
env Variable completions. (#3666) 2021-06-23 19:21:39 +12:00
evaluate Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
filesystem Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
plugin Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
shell Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
types Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
call_info.rs Switch to "engine-p" (#3270) 2021-04-06 11:19:43 -05:00
command_args.rs Refactor rarely changing engine state into its own struct (#3612) 2021-06-14 15:19:12 +12:00
config_holder.rs enable theming of the command line syntax (#3606) 2021-06-11 14:17:43 -05:00
documentation.rs Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
evaluation_context.rs Small fixes and refactors to paths & source command (#3998) 2021-09-12 02:36:14 +03:00
example.rs Split nu-cli into nu-cli/nu-engine (#2898) 2021-01-10 15:50:49 +13:00
from_value.rs Small fixes and refactors to paths & source command (#3998) 2021-09-12 02:36:14 +03:00
lib.rs Allow environment variables to be hidden (#3950) 2021-08-26 08:15:58 -05:00
maybe_text_codec.rs Fix a bunch of future clippy warnings (#3586) 2021-06-10 07:08:12 +12:00
print.rs Refactor rarely changing engine state into its own struct (#3612) 2021-06-14 15:19:12 +12:00
script.rs nu-path crate refactor (#3730) 2021-08-28 15:59:09 +03:00
types.rs Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
whole_stream_command.rs Allow different names for ...rest (#3954) 2021-08-27 05:58:53 +12:00