mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 17:14:23 +01:00
Warn if we see let config = ../.. (#5318)
This commit is contained in:
parent
cd2df83ddc
commit
ec611526ac
@ -277,6 +277,14 @@ fn setup_config(
|
||||
|
||||
config_files::read_config_file(engine_state, stack, env_file, is_perf_true(), true);
|
||||
config_files::read_config_file(engine_state, stack, config_file, is_perf_true(), false);
|
||||
|
||||
// Give a warning if we see `$config` for a few releases
|
||||
{
|
||||
let working_set = StateWorkingSet::new(engine_state);
|
||||
if working_set.find_variable(b"$config").is_some() {
|
||||
println!("warning: use `let-env config = ...` instead of `let config = ...`");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_commandline_args(
|
||||
|
Loading…
Reference in New Issue
Block a user