mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-16 15:41:52 +02:00
Updated the Markdown manuals
This commit is contained in:
@ -61,7 +61,7 @@ param([string]$abbr = "")
|
||||
|
||||
try {
|
||||
if ($abbr -eq "" ) { $abbr = Read-Host "Enter the abbreviation to query" }
|
||||
$files = (Get-ChildItem "$PSScriptRoot/../Data/Abbr/*.csv")
|
||||
$files = (Get-ChildItem "$PSScriptRoot/../data/abbr/*.csv")
|
||||
$basename = ""
|
||||
foreach($file in $files) {
|
||||
$table = Import-CSV "$file"
|
||||
@ -71,7 +71,7 @@ try {
|
||||
"💡 $($row.ABBR) in $basename refers to $($row.MEANING)"
|
||||
}
|
||||
}
|
||||
if ($basename -eq "") { "🤷 Sorry, no entry '$abbr' in my database (located at .../Data/Abbr/)." }
|
||||
if ($basename -eq "") { "🤷 Sorry, no '$abbr' entry found. Use <Ctrl> <Click> to google it: https://www.google.com/search?q=abbreviation+$abbr" }
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -79,4 +79,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of what-is.ps1 as of 10/19/2023 08:11:43)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of what-is.ps1 as of 12/07/2023 20:24:24)*
|
||||
|
Reference in New Issue
Block a user