nushell/crates/nu-command/src/commands
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
..
charting Allow different names for ...rest (#3954) 2021-08-27 05:58:53 +12:00
config Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
conversions Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
core_commands Small fixes and refactors to paths & source command (#3998) 2021-09-12 02:36:14 +03:00
dataframe Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
env 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
filters Fix clippy warnings (#3997) 2021-09-10 13:13:11 +12:00
formats Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
generators Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
math Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
network Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
path Small fixes and refactors to paths & source command (#3998) 2021-09-12 02:36:14 +03:00
pathvar Support other variables than PATH in pathvar (2nd attempt) (#3828) 2021-07-24 11:44:36 -05:00
platform Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
random Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
shells Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
strings Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
system Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
viewers Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
mod.rs Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00