Updated the manuals

This commit is contained in:
Markus Fleschutz
2024-08-15 09:51:46 +02:00
parent 654d1a18d0
commit e1ffab5509
633 changed files with 2120 additions and 973 deletions

View File

@ -26,7 +26,7 @@ Example
-------
```powershell
PS> ./what-is VTOL
💡 VTOL in aviation refers to Vertical Take-Off and Landing
💡 VTOL in aviation refers to: Vertical Take-Off and Landing
```
@ -50,7 +50,7 @@ Script Content
Specifies the term to query
.EXAMPLE
PS> ./what-is VTOL
💡 VTOL in aviation refers to Vertical Take-Off and Landing
💡 VTOL in aviation refers to: Vertical Take-Off and Landing
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -61,6 +61,7 @@ param([string]$term = "")
try {
if ($term -eq "" ) { $term = Read-Host "Enter the term/abbreviation/etc. to query" }
$files = (Get-ChildItem "$PSScriptRoot/../data/dicts/*.csv")
$basename = ""
foreach($file in $files) {
@ -71,7 +72,9 @@ try {
"💡 $($row.TERM) in $basename refers to: $($row.MEANING)"
}
}
if ($basename -eq "") { "🤷‍ Sorry, no '$term' entry found. Use <Ctrl> <Click> to google it: https://www.google.com/search?q=what+is+$term" }
if ($basename -eq "") {
& "$PSScriptRoot/open-URL.ps1" "https://www.google.com/search?q=what+is+$term" "🤷‍ Sorry, no '$term' entry found. Let's google it at: "
}
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -79,4 +82,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 using the comment-based help of what-is.ps1 as of 05/19/2024 10:25:27)*
*(generated by convert-ps2md.ps1 using the comment-based help of what-is.ps1 as of 08/15/2024 09:50:55)*