mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 06:28:41 +02:00
Add --env and --wrapped flags to def (#10566)
This commit is contained in:
@ -1118,3 +1118,12 @@ fn pipe_input_to_print() {
|
||||
assert_eq!(actual.out, "foo");
|
||||
assert!(actual.err.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_not_found_error_shows_not_found_2() {
|
||||
let actual = nu!(r#"
|
||||
export def --wrapped my-foo [...rest] { foo };
|
||||
my-foo
|
||||
"#);
|
||||
assert!(actual.err.contains("did you mean"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user