Allow expanding aliases before keywords, improve hiding (#4858)

* Allow aliasing source

* Add test

* improve hiding

* Finish adding tests

* fix test
This commit is contained in:
JT
2022-03-18 11:35:50 +13:00
committed by GitHub
parent 0986eefb64
commit d0cbb2d12c
11 changed files with 90 additions and 15 deletions

View File

@ -113,7 +113,7 @@ impl Command for Hide {
} else if !import_pattern.hidden.contains(&import_pattern.head.name)
&& stack.remove_env_var(engine_state, &head_name_str).is_none()
{
return Err(ShellError::NotFound(call.positional[0].span));
// TODO: we may want to error in the future
}
Ok(PipelineData::new(call.head))