Add aliased command to which output (#2894)

* Add aliased command to which output

* Fix alias arguments not being displayed
This commit is contained in:
Coen Fox
2021-01-10 04:19:46 +11:00
committed by GitHub
parent 99117ff2ef
commit 363dc51ba0
2 changed files with 17 additions and 3 deletions

View File

@ -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]