mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-10 10:48:31 +02:00
Improve output of what-is.ps1
This commit is contained in:
parent
8748becdad
commit
c76cc609fe
@ -15,7 +15,7 @@ try {
|
|||||||
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Aviation.csv"
|
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Aviation.csv"
|
||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
if ($Row.Abbr -eq $Abbreviation) {
|
if ($Row.Abbr -eq $Abbreviation) {
|
||||||
"Aviation: $($Row.Description)"
|
" → $($Row.Description) (in aviation)"
|
||||||
$FoundOne = 1
|
$FoundOne = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -23,7 +23,7 @@ try {
|
|||||||
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Misc.csv"
|
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Misc.csv"
|
||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
if ($Row.Abbr -eq $Abbreviation) {
|
if ($Row.Abbr -eq $Abbreviation) {
|
||||||
"Misc: $($Row.Description)"
|
" → $($Row.Description) (in misc)"
|
||||||
$FoundOne = 1
|
$FoundOne = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user