mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:35:00 +02:00
Add pathvar
command (#3670)
* Add pathvar command Signed-off-by: nathom <nathanthomas707@gmail.com> * Add pathvar command to context Signed-off-by: nathom <nathanthomas707@gmail.com> * Add pathvar reset command Signed-off-by: nathom <nathanthomas707@gmail.com> * Update help message Signed-off-by: nathom <nathanthomas707@gmail.com> * Remove insert command Signed-off-by: nathom <nathanthomas707@gmail.com> * Remove unused import Signed-off-by: nathom <nathanthomas707@gmail.com> * Remove insert mod Signed-off-by: nathom <nathanthomas707@gmail.com> * Support for windows path separator Signed-off-by: nathom <nathanthomas707@gmail.com> * Clear clippy errors Signed-off-by: nathom <nathanthomas707@gmail.com> * Remove empty file Signed-off-by: nathom <nathanthomas707@gmail.com> * Formatting Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
@ -14,6 +14,11 @@ pub const NATIVE_PATH_ENV_VAR: &str = "Path";
|
||||
#[cfg(not(windows))]
|
||||
pub const NATIVE_PATH_ENV_VAR: &str = "PATH";
|
||||
|
||||
#[cfg(windows)]
|
||||
pub const NATIVE_PATH_ENV_SEPARATOR: char = ':';
|
||||
#[cfg(not(windows))]
|
||||
pub const NATIVE_PATH_ENV_SEPARATOR: char = ';';
|
||||
|
||||
impl Outcome {
|
||||
pub fn new(out: String, err: String) -> Outcome {
|
||||
Outcome { out, err }
|
||||
|
Reference in New Issue
Block a user