Fix file lookup in parser keywords; Refactor nu_repl (#6185)

* Fix file lookup in parser keywords

* Make nu_repl a testbin; Fix wrong cwd test error
This commit is contained in:
Jakub Žádník
2022-07-29 23:42:00 +03:00
committed by GitHub
parent 7a820b1304
commit d6f4189c7b
10 changed files with 353 additions and 219 deletions

View File

@ -199,7 +199,7 @@ impl Value {
if let Ok(map) = create_map(value, &config) {
config.color_config = map;
} else {
eprintln!("$config.color_config is not a record")
eprintln!("$env.config.color_config is not a record")
}
}
"use_grid_icons" => {
@ -403,7 +403,7 @@ impl Value {
}
}
} else {
eprintln!("$config is not a record");
eprintln!("$env.config is not a record");
}
Ok(config)
@ -412,7 +412,7 @@ impl Value {
fn try_parse_trim_strategy(value: &Value, config: &Config) -> Result<TrimStrategy, ShellError> {
let map = create_map(value, config).map_err(|e| {
eprintln!("$config.table_trim is not a record");
eprintln!("$env.config.table_trim is not a record");
e
})?;