mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:35:59 +02:00
Add aliased command to which output (#2894)
* Add aliased command to which output * Fix alias arguments not being displayed
This commit is contained in:
@ -17,7 +17,7 @@ fn which_alias_ls() {
|
||||
"alias ls = ls -a; which ls | get path | str trim"
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "Nushell alias");
|
||||
assert_eq!(actual.out, "Nushell alias: ls -a");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -37,7 +37,7 @@ fn correct_precedence_alias_def_custom() {
|
||||
"def ls [] {echo def}; alias ls = echo alias; which ls | get path | str trim"
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "Nushell alias");
|
||||
assert_eq!(actual.out, "Nushell alias: echo alias");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user