2022-02-07 20:11:34 +01:00
|
|
|
<<<<<<< HEAD
|
2021-03-15 08:26:30 +01:00
|
|
|
mod configuration;
|
2021-03-31 07:52:34 +02:00
|
|
|
mod env;
|
2021-03-27 06:08:03 +01:00
|
|
|
mod in_sync;
|
2022-02-07 20:11:34 +01:00
|
|
|
=======
|
|
|
|
mod env;
|
|
|
|
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
2021-02-19 02:24:27 +01:00
|
|
|
mod nu_env;
|
|
|
|
|
|
|
|
pub mod support {
|
|
|
|
use nu_test_support::{nu, playground::*, Outcome};
|
|
|
|
|
|
|
|
pub struct Trusted;
|
|
|
|
|
|
|
|
impl Trusted {
|
|
|
|
pub fn in_path(dirs: &Dirs, block: impl FnOnce() -> Outcome) -> Outcome {
|
|
|
|
let for_env_manifest = dirs.test().to_string_lossy();
|
|
|
|
|
2022-01-18 13:33:28 +01:00
|
|
|
nu!(cwd: dirs.root(), format!("autoenv trust \"{}\"", for_env_manifest));
|
2021-02-19 02:24:27 +01:00
|
|
|
let out = block();
|
2022-01-18 13:33:28 +01:00
|
|
|
nu!(cwd: dirs.root(), format!("autoenv untrust \"{}\"", for_env_manifest));
|
2021-02-19 02:24:27 +01:00
|
|
|
|
|
|
|
out
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|